|
|||||||||||
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.LabeledStatement
This class represents the labeled statement nodes of the syntax tree
Field Summary | |
static java.lang.String |
LABEL
The label property name |
static java.lang.String |
STATEMENT
The statement property name |
Fields inherited from class koala.dynamicjava.tree.Node |
BEGIN_COLUMN, BEGIN_LINE, END_COLUMN, END_LINE, FILENAME |
Constructor Summary | |
LabeledStatement(java.lang.String label,
Node stat)
Creates a new while statement |
|
LabeledStatement(java.lang.String label,
Node stat,
java.lang.String fn,
int bl,
int bc,
int el,
int ec)
Creates a new while statement |
Method Summary | |
java.lang.Object |
acceptVisitor(Visitor visitor)
Allows a visitor to traverse the tree |
java.lang.String |
getLabel()
Gets the label |
Node |
getStatement()
Returns the statement |
void |
setLabel(java.lang.String s)
Sets the label |
void |
setStatement(Node n)
Sets the statement |
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 LABEL
public static final java.lang.String STATEMENT
Constructor Detail |
public LabeledStatement(java.lang.String label, Node stat)
label
- the labelstat
- the statement
java.lang.IllegalArgumentException
- if label is null or stat is nullpublic LabeledStatement(java.lang.String label, Node stat, java.lang.String fn, int bl, int bc, int el, int ec)
label
- the labelstat
- the statementfn
- the filenamebl
- the begin linebc
- the begin columnel
- the end lineec
- the end column
java.lang.IllegalArgumentException
- if label is null or stat is nullMethod Detail |
public java.lang.String getLabel()
public void setLabel(java.lang.String s)
java.lang.IllegalArgumentException
- if e is nullpublic Node getStatement()
public void setStatement(Node n)
java.lang.IllegalArgumentException
- if n 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 |