public class BlockStatement extends AbstractStatement
Modifier and Type | Field and Description |
---|---|
static BlockStatement |
EMPTY_BLOCK |
Constructor and Description |
---|
BlockStatement(Statement... statements) |
Modifier and Type | Method and Description |
---|---|
BlockStatement |
addAllStatements(Collection<Statement> stmts) |
BlockStatement |
addStatement(Statement statement) |
String |
generate(Context context) |
List<Statement> |
getStatements()
Returns a mutable representation of the statements in this block.
|
void |
insertBefore(Statement statement) |
boolean |
isEmpty() |
getType
public static final BlockStatement EMPTY_BLOCK
public BlockStatement(Statement... statements)
public BlockStatement addStatement(Statement statement)
public BlockStatement addAllStatements(Collection<Statement> stmts)
public void insertBefore(Statement statement)
public List<Statement> getStatements()
public boolean isEmpty()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.