Package 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

    Modifier and Type
    Method
    Description
    int
    Returns the end index of this nodes text in the underlying input buffer, i.e.
    Returns the label of this node which is equal to the name of the rule that created this node
    Returns the matcher that created this node.
    int
    Returns the start index of this nodes text in the underlying input buffer.
    Returns the value object attached to this node.
    boolean
     

    Methods inherited from interface org.parboiled.trees.GraphNode

    getChildren

    Methods inherited from interface org.parboiled.trees.TreeNode

    getParent
  • Method Details

    • getMatcher

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

      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