public class BlockStatement extends Statement
Constructor and Description |
---|
BlockStatement() |
BlockStatement(java.util.List statements,
VariableScope scope) |
BlockStatement(Statement[] statements,
VariableScope scope) |
Modifier and Type | Method and Description |
---|---|
void |
addStatement(Statement statement) |
void |
addStatements(java.util.List listOfStatements) |
java.util.List |
getStatements() |
java.lang.String |
getText() |
VariableScope |
getVariableScope() |
boolean |
isEmpty() |
void |
setVariableScope(VariableScope scope) |
java.lang.String |
toString() |
void |
visit(GroovyCodeVisitor visitor) |
getStatementLabel, setStatementLabel
getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setSourcePosition
public BlockStatement()
public BlockStatement(java.util.List statements, VariableScope scope)
public BlockStatement(Statement[] statements, VariableScope scope)
public void visit(GroovyCodeVisitor visitor)
public java.util.List getStatements()
public void addStatement(Statement statement)
public void addStatements(java.util.List listOfStatements)
public java.lang.String toString()
toString
in class java.lang.Object
public void setVariableScope(VariableScope scope)
public VariableScope getVariableScope()