|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTreeNode
TreeNode4
TreeNode4 extends TreeNode by adding four child components, which are references other TreeNodes. Hence, TreeNode4 is used to represent quartinary syntactic constructs in a parse tree.
Field Summary | |
TreeNode |
child1
Reference to the left child of this node. |
TreeNode |
child2
Reference to the first middle (or second, or third-from-the-last) child of this node. |
TreeNode |
child3
Reference to the second middle (or third, or next-to-the-last) child of this node. |
TreeNode |
child4
Reference to the right (or fourth, or last, or rightmost, or whatever-the-heck-you-want-to-call-it) child of this node. |
Fields inherited from class TreeNode |
id |
Constructor Summary | |
TreeNode4(int id,
TreeNode child1,
TreeNode child2,
TreeNode child3,
TreeNode child4)
Construct this with the given id and child TreeNode references. |
|
TreeNode4(int id,
TreeNode child1,
TreeNode child2,
TreeNode child3,
TreeNode child4,
int line,
int column)
A la the other constructor, but with line and column numbers. |
Method Summary | |
java.lang.String |
toString(int level)
Return the String representation of this subtree, which is the String value of its ID, followed on the next four indented lines by the recursive toString of its four children. |
Methods inherited from class TreeNode |
symPrint, toString, toStringLineAndColumn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public TreeNode child1
public TreeNode child2
public TreeNode child3
public TreeNode child4
Constructor Detail |
public TreeNode4(int id, TreeNode child1, TreeNode child2, TreeNode child3, TreeNode child4)
public TreeNode4(int id, TreeNode child1, TreeNode child2, TreeNode child3, TreeNode child4, int line, int column)
Method Detail |
public java.lang.String toString(int level)
toString
in class TreeNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |