Interface Node<V>
-
Method Summary
Modifier and TypeMethodDescriptionintReturns 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.intReturns the start index of this nodes text in the underlying input buffer.getValue()Returns the value object attached to this node.booleanhasError()Methods inherited from interface 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
-
hasError
boolean hasError()- Returns:
- true if there were parse errors in the input range covered by this node
-