public class ForStatement extends Statement
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() |
Parameter |
getVariable() |
VariableScope |
getVariableScope() |
ClassNode |
getVariableType() |
void |
setCollectionExpression(Expression collectionExpression) |
void |
setLoopBlock(Statement loopBlock) |
void |
setVariableScope(VariableScope variableScope) |
void |
visit(GroovyCodeVisitor visitor) |
getStatementLabel, isEmpty, setStatementLabel
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getText, 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()
public Parameter getVariable()
public ClassNode getVariableType()
public void setCollectionExpression(Expression collectionExpression)
public void setVariableScope(VariableScope variableScope)
public VariableScope getVariableScope()
public void setLoopBlock(Statement loopBlock)