|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNode
public class Node
Node for the parse tree
Field Summary | |
---|---|
protected Node |
left
Reference to the left subtree |
protected Node |
right
Reference to the right subtree |
protected java.lang.String |
string
Content of the node |
Constructor Summary | |
---|---|
Node(java.lang.String str)
Constructs a new node, sets the left and the right subtree to null |
Method Summary | |
---|---|
Node |
getLeft()
Getter for the left subtree |
Node |
getRight()
Getter for the right subtree |
java.lang.String |
getString()
Getter for the content |
void |
setLeft(Node n)
Setter for the left subtree |
void |
setRight(Node n)
Setter for the right subtree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String string
protected Node left
protected Node right
Constructor Detail |
---|
public Node(java.lang.String str)
null
str
- the content of the nodeMethod Detail |
---|
public java.lang.String getString()
public Node getLeft()
public void setLeft(Node n)
public Node getRight()
public void setRight(Node n)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |