Package org.parboiled
Interface Node<V>
Represents a node in the parse tree created during a parsing run.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the end index of this nodes text in the underlying input buffer, i.e.getLabel()
Returns the label of this node which is equal to the name of the rule that created this nodeReturns the matcher that created this node.int
Returns the start index of this nodes text in the underlying input buffer.getValue()
Returns the value object attached to this node.boolean
hasError()
Methods inherited from interface org.parboiled.trees.GraphNode
getChildren
-
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
-