Class ForStatement
java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.stmt.Statement
org.codehaus.groovy.ast.stmt.ForStatement
- All Implemented Interfaces:
LoopingStatement
Represents a standard for loop in Groovy
- Version:
- $Revision$
- Author:
- James Strachan
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionForStatement(Parameter variable, Expression collectionExpression, Statement loopBlock) -
Method Summary
Modifier and TypeMethodDescriptionGets the loop block.voidsetCollectionExpression(Expression collectionExpression) voidsetLoopBlock(Statement loopBlock) Sets the loop block.voidsetVariableScope(VariableScope variableScope) voidvisit(GroovyCodeVisitor visitor) Methods inherited from class Statement
getStatementLabel, isEmpty, setStatementLabel
-
Field Details
-
FOR_LOOP_DUMMY
-
-
Constructor Details
-
ForStatement
-
-
Method Details
-
visit
-
getCollectionExpression
-
getLoopBlock
Description copied from interface:LoopingStatementGets the loop block.- Specified by:
getLoopBlockin interfaceLoopingStatement
-
getVariable
-
getVariableType
-
setCollectionExpression
-
setVariableScope
-
getVariableScope
-
setLoopBlock
Description copied from interface:LoopingStatementSets the loop block.- Specified by:
setLoopBlockin interfaceLoopingStatement
-