Package org.hisrc.jscm.codemodel.statement

Examples of org.hisrc.jscm.codemodel.statement.JSForVarStatement


      body._for()._break();
      body._for(x.assign(codeModel.integer(0))).test(x.lt(y))
          .update(x.postIncr()).expression(y.preIncr());
      body.forIn(x, y).block().expression(x.postDecr());

      JSForVarStatement _forVar0 = body.forVar("x0");
      Assert.assertNull(_forVar0.getExpression());
      JSVariable x0 = _forVar0.getVariable();
      _forVar0.comma("x1").comma("x2", codeModel.integer(10));
      _forVar0.test(x0.lt(codeModel.integer(5))).update(x0.postIncr())
          .expression(y.plusAssign(x0));

      JSForVarStatement _forVar1 = body
          .forVar("x1", codeModel.integer(0));
      Assert.assertNotNull(_forVar1.getExpression());
      JSVariable x1 = _forVar1.getVariable();
      _forVar1.test(x1.lt(codeModel.integer(5))).update(x1.postIncr())
          .expression(y.plusAssign(x1));

      JSForVarInStatement _forVarIn = body.forVarIn("x3", y);
      JSVariable x3 = _forVarIn.getVariable();
      _forVarIn.expression(y.plusAssign(x3));
View Full Code Here

TOP

Related Classes of org.hisrc.jscm.codemodel.statement.JSForVarStatement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.