Package daikon.diff
Class Node<CONTENT extends @Nullable Object,CHILD>
- Object
-
- Node<CONTENT,CHILD>
-
- Type Parameters:
CONTENT
- half of the type of the objects stored in this node, which areIPair<CONTENT,CONTENT>
CHILD
- the type of the children; it is is ignored if there are no children
public abstract class Node<CONTENT extends @Nullable Object,CHILD> extends Object
All nodes must subclass this class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
accept(Visitor v)
void
add(CHILD newChild)
Iterator<CHILD>
children()
CONTENT
getUserLeft()
Returns the first element of the user object pair.IPair<CONTENT,CONTENT>
getUserObject()
Returns the user object pair.CONTENT
getUserRight()
Returns the second element of the user object pair.
-
-
-
Method Detail
-
getUserObject
public IPair<CONTENT,CONTENT> getUserObject()
Returns the user object pair.- Returns:
- the user object pair
-
getUserLeft
@Pure public CONTENT getUserLeft()
Returns the first element of the user object pair.- Returns:
- the first element of the user object pair
-
getUserRight
@Pure public CONTENT getUserRight()
Returns the second element of the user object pair.- Returns:
- the second element of the user object pair
-
-