org.parboiled
Interface Node<V>

All Superinterfaces:
GraphNode<Node<V>>, TreeNode<Node<V>>

public interface Node<V>
extends TreeNode<Node<V>>

Represents a node in the parse tree created during a parsing run.


Method Summary
 int getEndIndex()
          Returns the end index of this nodes text in the underlying input buffer, i.e.
 java.lang.String getLabel()
          Returns the label of this node which is equal to the name of the rule that created this node
 Matcher getMatcher()
          Returns the matcher that created this node.
 int getStartIndex()
          Returns the start index of this nodes text in the underlying input buffer.
 V getValue()
          Returns the value object attached to this node.
 boolean hasError()
           
 
Methods inherited from interface org.parboiled.trees.TreeNode
getParent
 
Methods inherited from interface org.parboiled.trees.GraphNode
getChildren
 

Method Detail

getMatcher

Matcher getMatcher()
Returns the matcher that created this node.

Returns:
the matcher that created this node.

getLabel

java.lang.String getLabel()
Returns the label of this node which is equal to the name of the rule that created this node

Returns:
the label of this node

getStartIndex

int getStartIndex()
Returns the start index of this nodes text in the underlying input buffer.

Returns:
the start index

getEndIndex

int getEndIndex()
Returns the end index of this nodes text in the underlying input buffer, i.e. the index of the character immediately following the last character matched by this node.

Returns:
the end index

getValue

V getValue()
Returns the value object attached to this node.

Returns:
the value object

hasError

boolean hasError()
Returns:
true if there were parse errors in the input range covered by this node