org.codehaus.groovy.ast.stmt
public class BlockStatement extends Statement
| Constructor and Description |
|---|
BlockStatement() |
BlockStatement(java.util.List<Statement> statements,
VariableScope scope) |
BlockStatement(Statement[] statements,
VariableScope scope) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatement(Statement statement) |
void |
addStatements(java.util.List<Statement> listOfStatements) |
java.util.List<Statement> |
getStatements() |
java.lang.String |
getText() |
VariableScope |
getVariableScope() |
boolean |
isEmpty() |
void |
setVariableScope(VariableScope scope) |
java.lang.String |
toString() |
void |
visit(GroovyCodeVisitor visitor) |
getStatementLabel, setStatementLabelgetColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setSourcePositionpublic BlockStatement()
public BlockStatement(java.util.List<Statement> statements, VariableScope scope)
public BlockStatement(Statement[] statements, VariableScope scope)
public void visit(GroovyCodeVisitor visitor)
public java.util.List<Statement> getStatements()
public void addStatement(Statement statement)
public void addStatements(java.util.List<Statement> listOfStatements)
public java.lang.String toString()
toString in class java.lang.Objectpublic void setVariableScope(VariableScope scope)
public VariableScope getVariableScope()