|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Block
represents a Java block statement -- an immutable
sequence of statements.
Method Summary | |
Block |
append(Stmt stmt)
Append a statement to the block, returning a new block. |
Block |
prepend(Stmt stmt)
Prepend a statement to the block, returning a new block. |
java.util.List |
statements()
Get the statements in the block. |
Block |
statements(java.util.List statements)
Set the statements in the block. |
Methods inherited from interface polyglot.ast.Term |
acceptCFG, entry, reachable, reachable |
Methods inherited from interface polyglot.ast.Node |
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge |
Methods inherited from interface polyglot.ast.JL |
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren |
Methods inherited from interface polyglot.util.Copy |
copy |
Method Detail |
public java.util.List statements()
Stmt
.public Block statements(java.util.List statements)
statements
- A list of Stmt
.public Block append(Stmt stmt)
public Block prepend(Stmt stmt)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |