|
|||||||||||
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
This class represents the switch statement nodes of the syntax tree
Field Summary | |
static java.lang.String |
BINDINGS
The bindings property name |
static java.lang.String |
SELECTOR
The selector property name |
Fields inherited from class koala.dynamicjava.tree.Node |
BEGIN_COLUMN, BEGIN_LINE, END_COLUMN, END_LINE, FILENAME |
Constructor Summary | |
SwitchStatement(Expression sel,
java.util.List cases,
java.lang.String fn,
int bl,
int bc,
int el,
int ec)
Creates a new switch statement |
Method Summary | |
java.lang.Object |
acceptVisitor(Visitor visitor)
Allows a visitor to traverse the tree |
java.util.List |
getBindings()
Returns the 'case' bindings |
Expression |
getSelector()
Gets the selector |
void |
setBindings(java.util.List l)
Sets the bindings |
void |
setSelector(Expression e)
Sets the selector |
Methods inherited from class koala.dynamicjava.tree.Node |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFilename, getProperties, getProperty, hasProperty, removePropertyChangeListener, removePropertyChangeListener, setBeginColumn, setBeginLine, setEndColumn, setEndLine, setFilename, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SELECTOR
public static final java.lang.String BINDINGS
Constructor Detail |
public SwitchStatement(Expression sel, java.util.List cases, java.lang.String fn, int bl, int bc, int el, int ec)
sel
- the selectorcases
- the case bindings (SwitchBlocks)fn
- the filenamebl
- the begin linebc
- the begin columnel
- the end lineec
- the end column
java.lang.IllegalArgumentException
- if sel is null or cases is nullMethod Detail |
public Expression getSelector()
public void setSelector(Expression e)
java.lang.IllegalArgumentException
- if e is nullpublic java.util.List getBindings()
public void setBindings(java.util.List l)
java.lang.IllegalArgumentException
- if e is nullpublic java.lang.Object acceptVisitor(Visitor visitor)
acceptVisitor
in class Node
visitor
- the visitor to accept
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |