Package 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
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
Methods inherited from interface org.parboiled.trees.GraphNode
getChildren
-
Method Details
-
getParent
T getParent()Returns the parent node or null if this node is the root.- Returns:
- the parent node
-