Package com.sun.codemodel
Class JForLoop
- java.lang.Object
-
- com.sun.codemodel.JForLoop
-
- All Implemented Interfaces:
JStatement
public class JForLoop extends java.lang.Object implements JStatement
For statement
-
-
Field Summary
Fields Modifier and Type Field Description private JBlockbodyprivate java.util.List<java.lang.Object>initsprivate JExpressiontestprivate java.util.List<JExpression>updates
-
Constructor Summary
Constructors Constructor Description JForLoop()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JBlockbody()JVarinit(int mods, JType type, java.lang.String var, JExpression e)JVarinit(JType type, java.lang.String var, JExpression e)voidinit(JVar v, JExpression e)voidstate(JFormatter f)voidtest(JExpression e)voidupdate(JExpression e)
-
-
-
Field Detail
-
inits
private java.util.List<java.lang.Object> inits
-
test
private JExpression test
-
updates
private java.util.List<JExpression> updates
-
body
private JBlock body
-
-
Method Detail
-
init
public JVar init(int mods, JType type, java.lang.String var, JExpression e)
-
init
public JVar init(JType type, java.lang.String var, JExpression e)
-
init
public void init(JVar v, JExpression e)
-
test
public void test(JExpression e)
-
update
public void update(JExpression e)
-
body
public JBlock body()
-
state
public void state(JFormatter f)
- Specified by:
statein interfaceJStatement
-
-