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, setStatementLabel
copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, hashCode, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public 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()
LoopingStatement
getLoopBlock
in interface LoopingStatement
public Parameter getVariable()
public ClassNode getVariableType()
public void setCollectionExpression(Expression collectionExpression)
public void setVariableScope(VariableScope variableScope)
public VariableScope getVariableScope()
public void setLoopBlock(Statement loopBlock)
LoopingStatement
setLoopBlock
in interface LoopingStatement