|
||||||||||
| 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
public class LabeledStatement
This class represents the labeled statement nodes of the syntax tree
| Constructor Summary | |
|---|---|
LabeledStatement(java.lang.String label,
Node stat)
Creates a new while statement |
|
LabeledStatement(java.lang.String label,
Node stat,
SourceInfo si)
Creates a new while statement |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> 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 |
|
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 LabeledStatement(java.lang.String label,
Node stat)
label - the labelstat - the statement
java.lang.IllegalArgumentException - if label is null or stat is null
public LabeledStatement(java.lang.String label,
Node stat,
SourceInfo si)
label - the labelstat - the statement
java.lang.IllegalArgumentException - if label is null or stat is null| Method 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 <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 | |||||||||