| Modifier and Type | Field and Description |
|---|---|
| private VariableScope | |
| private List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BlockStatement(List<Statement>
the statements. Do not pass null. If you do, no exception will occur,
but a NullPointerException will eventually occur later. Also, a reference
to the list is kept, so modifying the List later does effect this class. statements, VariableScope the scope scope)Creates a BlockStatement with a scope and children statements. |
| public | BlockStatement(Statement[]
the statements, which cannot be null or an exception occurs. No reference
to the array is held, so modifying the array later has no effect on this
class. statements, VariableScope the scope scope)Creates a BlockStatement with a scope and children statements. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public List | |
| public String | |
| public VariableScope | |
| public boolean | |
| public void | |
| public String | |
| public void |
| scope | back to summary |
|---|---|
| private VariableScope scope | |
| statements | back to summary |
|---|---|
| private List<Statement> statements | |
| BlockStatement | back to summary |
|---|---|
| public BlockStatement() | |
| BlockStatement | back to summary |
|---|---|
| public BlockStatement(List<Statement> statements, VariableScope scope) Creates a BlockStatement with a scope and children statements.
| |
| BlockStatement | back to summary |
|---|---|
| public BlockStatement(Statement[] statements, VariableScope scope) Creates a BlockStatement with a scope and children statements.
| |
| addStatement | back to summary |
|---|---|
| public void addStatement(Statement statement) | |
| addStatements | back to summary |
|---|---|
| public void addStatements(List<Statement> listOfStatements) | |
| getStatements | back to summary |
|---|---|
| public List | |
| getText | back to summary |
|---|---|
| public String getText() Overrides org. | |
| getVariableScope | back to summary |
|---|---|
| public VariableScope getVariableScope() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| setVariableScope | back to summary |
|---|---|
| public void setVariableScope(VariableScope scope) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| visit | back to summary |
|---|---|
| public void visit(GroovyCodeVisitor visitor) Overrides org. | |