Overview | Package | Class | Deprecated | Index | Help
| Groovy 1.7.6
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.groovy.ast.stmt
[Java] Class ForStatement

    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

Authors:
  James Strachan

Version:
  \$Revision: 15759 \$

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 ASTNode
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getText, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit

Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll

Field Detail

### FOR_LOOP_DUMMY

    public static final Parameter FOR_LOOP_DUMMY

Constructor Detail

### ForStatement

    public ForStatement(Parameter variable, Expression collectionExpression, Statement loopBlock)

Method Detail

### getCollectionExpression

    public Expression getCollectionExpression()

### getLoopBlock

    public Statement getLoopBlock()

### getVariable

    public Parameter getVariable()

### getVariableScope

    public VariableScope getVariableScope()

### getVariableType

    public ClassNode getVariableType()

### setCollectionExpression

    public void setCollectionExpression(Expression collectionExpression)

### setLoopBlock

    public void setLoopBlock(Statement loopBlock)

### setVariableScope

    public void setVariableScope(VariableScope variableScope)

### visit

    public void visit(GroovyCodeVisitor visitor)

Copyright © 2003-2010 The Codehaus. All rights reserved.