|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.ASTNode org.codehaus.groovy.ast.stmt.Statement org.codehaus.groovy.ast.stmt.ForStatement
public class ForStatement extends Statement
Represents a standard for loop in Groovy
Field Summary | |
---|---|
static Parameter |
FOR_LOOP_DUMMY
|
Constructor Summary | |
ForStatement(Parameter variable, Expression collectionExpression, Statement loopBlock)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class Statement | |
---|---|
getStatementLabel, isEmpty, setStatementLabel |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final Parameter FOR_LOOP_DUMMY
Constructor Detail |
---|
public ForStatement(Parameter variable, Expression collectionExpression, Statement loopBlock)
Method Detail |
---|
public Expression getCollectionExpression()
public Statement getLoopBlock()
public Parameter getVariable()
public VariableScope getVariableScope()
public ClassNode getVariableType()
public void setCollectionExpression(Expression collectionExpression)
public void setLoopBlock(Statement loopBlock)
public void setVariableScope(VariableScope variableScope)
public void visit(GroovyCodeVisitor visitor)
Groovy Documentation