LoopingStatement
public class ForStatement extends Statement implements LoopingStatement
Modifier and Type | Field | Description |
---|---|---|
static Parameter |
FOR_LOOP_DUMMY |
Constructor | Description |
---|---|
ForStatement(Parameter variable,
Expression collectionExpression,
Statement loopBlock) |
Modifier and Type | Method | 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) |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStatementLabel, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel
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