public class ForStatement extends Statement implements LoopingStatement
| Modifier and Type | Field and Description |
|---|---|
static Parameter |
FOR_LOOP_DUMMY |
| Constructor and Description |
|---|
ForStatement(Parameter variable,
Expression collectionExpression,
Statement loopBlock) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
getCollectionExpression() |
Statement |
getLoopBlock()
Gets the loop block.
|
Parameter |
getVariable() |
VariableScope |
getVariableScope() |
ClassNode |
getVariableType() |
void |
setCollectionExpression(Expression collectionExpression) |
void |
setLoopBlock(Statement loopBlock)
Sets the loop block.
|
void |
setVariableScope(VariableScope variableScope) |
void |
visit(GroovyCodeVisitor visitor) |
addStatementLabel, getStatementLabel, getStatementLabels, isEmpty, setStatementLabelcopyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePositionpublic static final Parameter FOR_LOOP_DUMMY
public ForStatement(Parameter variable, Expression collectionExpression, Statement loopBlock)
public void visit(GroovyCodeVisitor visitor)
public Expression getCollectionExpression()
public Statement getLoopBlock()
LoopingStatementgetLoopBlock in interface LoopingStatementpublic Parameter getVariable()
public ClassNode getVariableType()
public void setCollectionExpression(Expression collectionExpression)
public void setVariableScope(VariableScope variableScope)
public VariableScope getVariableScope()
public void setLoopBlock(Statement loopBlock)
LoopingStatementsetLoopBlock in interface LoopingStatement