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>
AnImmutableGraphNode
specialization representing a tree node with a parent field linking back to the nodes (only) parent.
-
-
Constructor Summary
Constructors Constructor Description ImmutableTreeNode()
ImmutableTreeNode(List<T> children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
acquireChildren()
T
getParent()
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
-
-