|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkoala.dynamicjava.tree.Node
koala.dynamicjava.tree.Statement
koala.dynamicjava.tree.BlockStatement
public class BlockStatement
This class represents the block statement nodes of the syntax tree
| Constructor Summary | |
|---|---|
BlockStatement(List<Node> stmts)
Creates a new block statement |
|
BlockStatement(List<Node> stmts,
SourceInfo si)
Creates a new block statement |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
List<Node> |
getStatements()
Returns the statements contained in this block |
|
void |
setStatements(List<Node> l)
Sets the statements contained in this block |
|
String |
toString()
Implementation of toString for use in unit testing |
|
| Methods inherited from class koala.dynamicjava.tree.Node |
|---|
archiveProperties, getProperties, getProperty, getSourceInfo, hasProperty, setProperty, setSourceInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BlockStatement(List<Node> stmts)
stmts - the list of the statements contained in this block
public BlockStatement(List<Node> stmts,
SourceInfo si)
stmts - the list of the statements contained in this block
IllegalArgumentException - if stmts is null| Method Detail |
|---|
public List<Node> getStatements()
public void setStatements(List<Node> l)
IllegalArgumentException - if l is nullpublic <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor in class Nodevisitor - the visitor to acceptpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||