| Method from org.codehaus.groovy.ast.stmt.BlockStatement Detail: |
public void addStatement(Statement statement) {
statements.add(statement);
}
|
public void addStatements(List listOfStatements) {
statements.addAll(listOfStatements);
}
|
public List getStatements() {
return statements;
}
|
public String getText() {
StringBuffer buffer = new StringBuffer("{ ");
boolean first = true;
for (Iterator iter = statements.iterator(); iter.hasNext(); ) {
if (first) {
first = false;
}
else {
buffer.append("; ");
}
Statement statement = (Statement) iter.next();
buffer.append(statement.getText());
}
buffer.append(" }");
return buffer.toString();
}
|
public VariableScope getVariableScope() {
return scope;
}
|
public boolean isEmpty() {
return statements.isEmpty();
}
|
public void setVariableScope(VariableScope scope) {
this.scope = scope;
}
|
public String toString() {
return super.toString() + statements;
}
|
public void visit(GroovyCodeVisitor visitor) {
visitor.visitBlockStatement(this);
}
|