A list of statements and a scope.
Fields inherited from class | Fields |
---|---|
interface Statement |
CLOSE_CURRENT_RESULT, KEEP_CURRENT_RESULT, CLOSE_ALL_RESULTS, SUCCESS_NO_INFO, EXECUTE_FAILED, RETURN_GENERATED_KEYS, NO_GENERATED_KEYS |
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) |
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-2021 The Apache Software Foundation. All rights reserved.