public class ForStatement extends Statement
Represents a standard for loop in Groovy
| Modifiers | Name | Description | 
|---|---|---|
static Parameter  | 
                            FOR_LOOP_DUMMY | 
                            
| Constructor and description | 
|---|
                                ForStatement
                                (Parameter variable, Expression collectionExpression, Statement loopBlock) | 
                        
| Type Params | Return Type | Name 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) | 
                        
| Methods inherited from class | Name | 
|---|---|
class Statement | 
                            addStatementLabel, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel | 
                        
class ASTNode | 
                            copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit | 
                        
class Object | 
                            wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll | 
                        
Copyright © 2003-2017 The Apache Software Foundation. All rights reserved.