org.parboiled.trees
Interface TreeNode<T extends TreeNode<T>>

Type Parameters:
T - the actual implementation type of this TreeNode
All Superinterfaces:
GraphNode<T>
All Known Subinterfaces:
BinaryTreeNode<T>, MutableBinaryTreeNode<T>, MutableTreeNode<T>, Node<V>
All Known Implementing Classes:
ImmutableBinaryTreeNode, ImmutableTreeNode, MutableBinaryTreeNodeImpl, MutableTreeNodeImpl

public interface TreeNode<T extends TreeNode<T>>
extends GraphNode<T>

A specialization of a GraphNode that contains a reference to its parent, thereby making the graph a tree (since each node can now have only one parent node).


Method Summary
 T getParent()
          Returns the parent node or null if this node is the root.
 
Methods inherited from interface org.parboiled.trees.GraphNode
getChildren
 

Method Detail

getParent

T getParent()
Returns the parent node or null if this node is the root.

Returns:
the parent node