|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
|
+--TopLevelClass.Default.Node
Provides a simple implementation of TopLevelClass.Node
.
Constructor Summary | |
TopLevelClass.Default.Node(List childNodes)
Constucts an instance. |
Method Summary | |
List |
getChildNodes()
Returns the list of the child nodes of this .
|
void |
replaceChild(TopLevelClass.Node oldChild,
TopLevelClass.Node newChild)
Replaces the child node oldChild with newChild .
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TopLevelClass.Default.Node(List childNodes)
The returned list of getChildNodes()
is the childNodes
rather than a copy of it.
childNodes
- a list of child nodes.Method Detail |
public List getChildNodes()
TopLevelClass.Node
this
.
For a Node created by the program generated by ¬<><∪∪, the list should be modifiable and the nodes should be ordered by its position in the parsed text. However, the nodes constructed by the users of ¬<><∪∪ are not required to satisfy it.
getChildNodes
in interface TopLevelClass.Node
this
.public void replaceChild(TopLevelClass.Node oldChild, TopLevelClass.Node newChild)
oldChild
with newChild
.
This method
replaces oldChild
in getChildNodes()
with newChild
.
Also, this method replaces the values returned by TopLevelClass.Type.label()
.
oldChild
- a replaced child node.newChild
- a child node to replace oldChild
.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |