Class Node

java.lang.Object
  extended by Node

public class Node
extends java.lang.Object

Node for the parse tree

Version:
16. Dec. 2007
Author:
P. Tellenbach

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

string

protected java.lang.String string
Content of the node


left

protected Node left
Reference to the left subtree


right

protected Node right
Reference to the right subtree

Constructor Detail

Node

public Node(java.lang.String str)
Constructs a new node, sets the left and the right subtree to null

Parameters:
str - the content of the node
Method Detail

getString

public java.lang.String getString()
Getter for the content


getLeft

public Node getLeft()
Getter for the left subtree


setLeft

public void setLeft(Node n)
Setter for the left subtree


getRight

public Node getRight()
Getter for the right subtree


setRight

public void setRight(Node n)
Setter for the right subtree