Package org.parboiled.trees
Class ImmutableTreeNode<T extends TreeNode<T>>
java.lang.Object
org.parboiled.trees.ImmutableGraphNode<T>
org.parboiled.trees.ImmutableTreeNode<T>
- Type Parameters:
T
- the actual implementation type of this ImmutableTreeNode
- Direct Known Subclasses:
ImmutableBinaryTreeNode
public class ImmutableTreeNode<T extends TreeNode<T>>
extends ImmutableGraphNode<T>
implements TreeNode<T>
An
ImmutableGraphNode
specialization representing a tree node with a parent field linking back to the nodes
(only) parent.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Returns the parent node or null if this node is the root.Methods inherited from class org.parboiled.trees.ImmutableGraphNode
getChildren
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.parboiled.trees.GraphNode
getChildren
-
Constructor Details
-
ImmutableTreeNode
public ImmutableTreeNode() -
ImmutableTreeNode
-
-
Method Details