public class JForStatement extends JStatement
for
statement.Constructor and Description |
---|
JForStatement(SourceInfo info,
List<JStatement> initializers,
JExpression condition,
JExpression increments,
JStatement body)
Creates an AST node that represents a Java for statement.
|
Modifier and Type | Method and Description |
---|---|
JStatement |
getBody()
Returns the
for statement body. |
JExpression |
getCondition()
Returns the condition (2nd component) expression.
|
JExpression |
getIncrements()
Returns the increments (3rd component) expression.
|
List<JStatement> |
getInitializers()
Returns the initializer (1st component) statements.
|
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
unconditionalControlBreak
getSourceInfo, setSourceInfo, toSource, toString
public JForStatement(SourceInfo info, List<JStatement> initializers, JExpression condition, JExpression increments, JStatement body)
condition
and
increments
can be null to denote an empty component.public JStatement getBody()
for
statement body.public JExpression getIncrements()
public List<JStatement> getInitializers()
public JExpression getCondition()
Copyright © 2018. All rights reserved.