public class ForStatement extends Statement implements LoopingStatement
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 |
|---|---|---|
|
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) |
| Methods inherited from class | Name |
|---|---|
class Statement |
addStatementLabel, copyStatementLabels, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel |
class ASTNode |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit |
Copyright © 2003-2025 The Apache Software Foundation. All rights reserved.