|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.parboiled.trees.ImmutableGraphNode<T>
org.parboiled.trees.ImmutableTreeNode<T>
T
- the actual implementation type of this ImmutableTreeNodepublic class ImmutableTreeNode<T extends TreeNode<T>>
An ImmutableGraphNode
specialization representing a tree node with a parent field linking back to the nodes
(only) parent.
Constructor Summary | |
---|---|
ImmutableTreeNode()
|
|
ImmutableTreeNode(java.util.List<T> children)
|
Method Summary | |
---|---|
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 |
Constructor Detail |
---|
public ImmutableTreeNode()
public ImmutableTreeNode(java.util.List<T> children)
Method Detail |
---|
public T getParent()
TreeNode
getParent
in interface TreeNode<T extends TreeNode<T>>
protected void acquireChildren()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |