daikon.diff
Class Node<CONTENT,CHILD>

Object
  extended by Node<CONTENT,CHILD>
Direct Known Subclasses:
InvNode, PptNode, RootNode

public abstract class Node<CONTENT,CHILD>
extends Object

All nodes must subclass this class. The type parameter CONTENT is (half of) the type of the objects stored in this node: they are Pair. The type parameter CHILD is the type of the children (and is ignored if there are no children).


Constructor Summary
Node()
           
Node(CONTENT left, CONTENT right)
           
Node(Pair<CONTENT,CONTENT> userObject)
           
 
Method Summary
abstract  void accept(Visitor v)
           
 void add(CHILD newChild)
           
 Iterator<CHILD> children()
           
 CONTENT getUserLeft()
           
 Pair<CONTENT,CONTENT> getUserObject()
           
 CONTENT getUserRight()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

public Node()

Node

public Node(Pair<CONTENT,CONTENT> userObject)

Node

public Node(CONTENT left,
            CONTENT right)
Method Detail

add

public void add(CHILD newChild)

children

public Iterator<CHILD> children()

getUserObject

public Pair<CONTENT,CONTENT> getUserObject()

getUserLeft

public CONTENT getUserLeft()

getUserRight

public CONTENT getUserRight()

accept

public abstract void accept(Visitor v)