A list of statements and a scope.
| Type | Name and description | 
|---|---|
VariableScope  | 
                            variableScope | 
                        
| Constructor and description | 
|---|
                                BlockStatement
                                () | 
                        
                                BlockStatement
                                (List<Statement> statements, VariableScope scope)Creates a BlockStatement with a scope and children statements.  | 
                        
                                BlockStatement
                                (Statement[] statements, VariableScope scope)Creates a BlockStatement with a scope and children statements.  | 
                        
| Type Params | Return Type | Name and description | 
|---|---|---|
 | 
                            void | 
                            addStatement(Statement statement) | 
                        
 | 
                            void | 
                            addStatements(List<Statement> listOfStatements) | 
                        
 | 
                            List<Statement> | 
                            getStatements() | 
                        
 | 
                            String | 
                            getText() | 
                        
 | 
                            VariableScope | 
                            getVariableScope() | 
                        
 | 
                            boolean | 
                            isEmpty() | 
                        
 | 
                            void | 
                            setVariableScope(VariableScope scope) | 
                        
 | 
                            String | 
                            toString() | 
                        
 | 
                            void | 
                            visit(GroovyCodeVisitor visitor) | 
                        
| Methods inherited from class | Name | 
|---|---|
class Statement | 
                            addStatementLabel, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel | 
                        
class ASTNode | 
                            copyNodeMetaData, copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, hashCode, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setNodeMetaData, setSourcePosition, visit | 
                        
class Object | 
                            wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll | 
                        
Creates a BlockStatement with a scope and children statements.
statements
 -       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.scope
 -       the scopeCreates a BlockStatement with a scope and children statements.
statements
 -       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.scope
 -       the scopeCopyright © 2003-2018 The Apache Software Foundation. All rights reserved.