public interface JFor extends JBlock
for
loop.JBlock.Braces
Modifier and Type | Method and Description |
---|---|
JVarDeclaration |
init(int mods,
Class<?> type,
String name,
JExpr value)
Add a loop initializer.
|
JVarDeclaration |
init(int mods,
JType type,
String name,
JExpr value)
Add a loop initializer.
|
JVarDeclaration |
init(int mods,
String type,
String name,
JExpr value)
Add a loop initializer.
|
JFor |
test(JExpr expr)
Add a test expression.
|
JFor |
update(JExpr updateExpr)
Add an update expression.
|
_assert, _assert, _break, _break, _class, _continue, _continue, _do, _for, _if, _new, _new, _new, _newAnon, _newAnon, _newAnon, _return, _return, _switch, _synchronized, _throw, _try, _while, add, addAssign, andAssign, anonLabel, anonLabel, assign, blankLine, block, call, call, call, call, callStatic, callStatic, callStatic, callStatic, callSuper, callThis, divAssign, empty, forEach, forEach, forEach, forwardLabel, label, label, lshrAssign, modAssign, mulAssign, orAssign, postDec, postInc, preDec, preInc, shlAssign, shrAssign, subAssign, tempName, tempVar, tempVar, tempVar, var, var, var, var, var, var, xorAssign
blockComment, lineComment
JVarDeclaration init(int mods, String type, String name, JExpr value)
mods
- the modifiers for the initializer variable declarationtype
- the type of the initializer variablesname
- the name of the first initializer variablevalue
- the initial value for the first initializer variableJVarDeclaration init(int mods, JType type, String name, JExpr value)
mods
- the modifiers for the initializer variable declarationtype
- the type of the initializer variablesname
- the name of the first initializer variablevalue
- the initial value for the first initializer variableJVarDeclaration init(int mods, Class<?> type, String name, JExpr value)
mods
- the modifiers for the initializer variable declarationtype
- the type of the initializer variablesname
- the name of the first initializer variablevalue
- the initial value for the first initializer variableJFor test(JExpr expr)
expr
- the test expressionfor
loopCopyright © 2016. All rights reserved.