Class ParseTree
java.lang.Object
org.jparsec.ParseTree
Represents the syntactical structure of the input being parsed.
- Since:
- 2.3
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the index in source where this node starts.Returns the immutable list of child nodes that correspond tolabeledparsers syntactically enclosed inside parent parser.intReturns the index in source where this node ends.getName()Returns the node name, which is specified inParser.label(String).getValue()Returns the parsed value of this node, ornullif it's a failed node.toString()
-
Method Details
-
getName
Returns the node name, which is specified inParser.label(String). -
getBeginIndex
public int getBeginIndex()Returns the index in source where this node starts. -
getEndIndex
public int getEndIndex()Returns the index in source where this node ends. -
getValue
Returns the parsed value of this node, ornullif it's a failed node. -
getChildren
-
toString
-