org.parboiled.trees
Class ImmutableGraphNode<T extends GraphNode<T>>

java.lang.Object
  extended by org.parboiled.trees.ImmutableGraphNode<T>
Type Parameters:
T - the actual implementation type of this ImmutableGraphNode
All Implemented Interfaces:
GraphNode<T>
Direct Known Subclasses:
AbstractMatcher, ImmutableTreeNode

public class ImmutableGraphNode<T extends GraphNode<T>>
extends java.lang.Object
implements GraphNode<T>

A simple, immutable GraphNode implementation.


Constructor Summary
ImmutableGraphNode()
           
ImmutableGraphNode(java.util.List<T> children)
           
 
Method Summary
 java.util.List<T> getChildren()
          Returns the sub nodes of this node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableGraphNode

public ImmutableGraphNode()

ImmutableGraphNode

public ImmutableGraphNode(java.util.List<T> children)
Method Detail

getChildren

public java.util.List<T> getChildren()
Description copied from interface: GraphNode
Returns the sub nodes of this node.

Specified by:
getChildren in interface GraphNode<T extends GraphNode<T>>
Returns:
the sub nodes