Class ForJBlock
java.lang.Object
org.jboss.jdeparser.BasicJCommentable
org.jboss.jdeparser.BasicJBlock
org.jboss.jdeparser.ForJBlock
- All Implemented Interfaces:
BlockContent, JBlock, JCommentable, JFor, JStatement, Writable
-
Nested Class Summary
Nested classes/interfaces inherited from interface JBlock
JBlock.Braces -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a loop initializer.Add a loop initializer.Add a loop initializer.Add a test expression.Add an update expression.voidwrite(SourceFileWriter writer) Methods inherited from class BasicJBlock
_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, get, getParent, hasSingleItemOfType, label, label, lshrAssign, modAssign, mulAssign, orAssign, postDec, postInc, preDec, preInc, shlAssign, shrAssign, size, subAssign, tempName, tempVar, tempVar, tempVar, var, var, var, var, var, var, write, write, xorAssignMethods inherited from class BasicJCommentable
blockComment, lineComment, writeCommentsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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, xorAssignMethods inherited from interface JCommentable
blockComment, lineComment
-
Field Details
-
init
-
test
-
update
-
-
Constructor Details
-
ForJBlock
ForJBlock(BasicJBlock parent)
-
-
Method Details
-
init
Description copied from interface:JForAdd a loop initializer.- Specified by:
initin interfaceJFor- 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
Description copied from interface:JForAdd a loop initializer.- Specified by:
initin interfaceJFor- 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
Description copied from interface:JForAdd a loop initializer.- Specified by:
initin interfaceJFor- 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
-
update
-
write
- Specified by:
writein interfaceWritable- Overrides:
writein classBasicJBlock- Throws:
IOException
-