Package org.jboss.jdeparser
Interface JFor
-
- All Superinterfaces:
JBlock,JCommentable,JStatement
- All Known Implementing Classes:
ForJBlock
public interface JFor extends JBlock
Aforloop.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.jdeparser.JBlock
JBlock.Braces
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JVarDeclarationinit(int mods, java.lang.Class<?> type, java.lang.String name, JExpr value)Add a loop initializer.JVarDeclarationinit(int mods, java.lang.String type, java.lang.String name, JExpr value)Add a loop initializer.JVarDeclarationinit(int mods, JType type, java.lang.String name, JExpr value)Add a loop initializer.JFortest(JExpr expr)Add a test expression.JForupdate(JExpr updateExpr)Add an update expression.-
Methods inherited from interface org.jboss.jdeparser.JBlock
_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
-
Methods inherited from interface org.jboss.jdeparser.JCommentable
blockComment, lineComment
-
-
-
-
Method Detail
-
init
JVarDeclaration init(int mods, java.lang.String type, java.lang.String name, JExpr value)
Add a loop initializer.- Parameters:
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 variable- Returns:
- the initializer variable declaration
-
init
JVarDeclaration init(int mods, JType type, java.lang.String name, JExpr value)
Add a loop initializer.- Parameters:
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 variable- Returns:
- the initializer variable declaration
-
init
JVarDeclaration init(int mods, java.lang.Class<?> type, java.lang.String name, JExpr value)
Add a loop initializer.- Parameters:
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 variable- Returns:
- the initializer variable declaration
-
test
JFor test(JExpr expr)
Add a test expression.- Parameters:
expr- the test expression- Returns:
- this
forloop
-
-