|
||||||||||
| 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.SwitchBlock
public class SwitchBlock
This class represents the switch expression-statement bindings
| Field Summary |
|---|
| Fields inherited from interface koala.dynamicjava.tree.ExpressionContainer |
|---|
EXPRESSION |
| Constructor Summary | |
|---|---|
SwitchBlock(Expression exp,
List<Node> stmts)
Creates a new binding |
|
SwitchBlock(Expression exp,
List<Node> stmts,
SourceInfo si)
Creates a new binding |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
Expression |
getExpression()
Returns the 'case' expression |
|
List<Node> |
getStatements()
Returns the statements |
|
void |
setExpression(Expression e)
Sets the 'case' expression |
|
void |
setStatements(List<Node> l)
Sets the statements |
|
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 SwitchBlock(Expression exp,
List<Node> stmts)
public SwitchBlock(Expression exp,
List<Node> stmts,
SourceInfo si)
exp - the case expression, or null for a default blockstmts - the body| Method Detail |
|---|
public Expression getExpression()
getExpression in interface ExpressionContainerpublic void setExpression(Expression e)
setExpression in interface ExpressionContainerpublic List<Node> getStatements()
public void setStatements(List<Node> l)
public <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 | |||||||||