|
||||||||||
| 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.SwitchStatement
public class SwitchStatement
This class represents the switch statement nodes of the syntax tree
| Constructor Summary | |
|---|---|
SwitchStatement(Expression sel,
java.util.List<SwitchBlock> cases,
SourceInfo si)
Creates a new switch statement |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
java.util.List<SwitchBlock> |
getBindings()
Returns the 'case' bindings |
|
Expression |
getSelector()
Gets the selector |
|
void |
setBindings(java.util.List<SwitchBlock> l)
Sets the bindings |
|
void |
setSelector(Expression e)
Sets the selector |
|
java.lang.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 SwitchStatement(Expression sel,
java.util.List<SwitchBlock> cases,
SourceInfo si)
sel - the selectorcases - the case bindings (SwitchBlocks)
java.lang.IllegalArgumentException - if sel is null or cases is null| Method Detail |
|---|
public Expression getSelector()
public void setSelector(Expression e)
java.lang.IllegalArgumentException - if e is nullpublic java.util.List<SwitchBlock> getBindings()
public void setBindings(java.util.List<SwitchBlock> l)
java.lang.IllegalArgumentException - if e is nullpublic <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor in class Nodevisitor - the visitor to acceptpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||