org.codehaus.groovy.ast.stmt
Class BlockStatement
java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.stmt.Statement
org.codehaus.groovy.ast.stmt.BlockStatement
public class BlockStatement
- extends Statement
A list of statements
- Version:
- $Revision: 15807 $
- Author:
- James Strachan
BlockStatement
public BlockStatement()
BlockStatement
public BlockStatement(List<Statement> statements,
VariableScope scope)
BlockStatement
public BlockStatement(Statement[] statements,
VariableScope scope)
visit
public void visit(GroovyCodeVisitor visitor)
- Overrides:
visit
in class ASTNode
getStatements
public List<Statement> getStatements()
addStatement
public void addStatement(Statement statement)
addStatements
public void addStatements(List<Statement> listOfStatements)
toString
public String toString()
- Overrides:
toString
in class Object
getText
public String getText()
- Overrides:
getText
in class ASTNode
isEmpty
public boolean isEmpty()
- Overrides:
isEmpty
in class Statement
setVariableScope
public void setVariableScope(VariableScope scope)
getVariableScope
public VariableScope getVariableScope()