|
Groovy 2.2.0 | |||||||
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 Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, 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)
Copyright © 2003-2013 The Codehaus. All rights reserved.