Package org.jparsec
Class ParseTree
java.lang.Object
org.jparsec.ParseTree
Represents the syntactical structure of the input being parsed.
- Since:
- 2.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the index in source where this node starts.Returns the immutable list of child nodes that correspond tolabeled
parsers syntactically enclosed inside parent parser.int
Returns the index in source where this node ends.getName()
Returns the node name, which is specified inParser.label(java.lang.String)
.getValue()
Returns the parsed value of this node, ornull
if it's a failed node.toString()
-
Field Details
-
name
-
beginIndex
private final int beginIndex -
endIndex
private final int endIndex -
value
-
children
-
-
Constructor Details
-
ParseTree
-
-
Method Details
-
getName
Returns the node name, which is specified inParser.label(java.lang.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, ornull
if it's a failed node. -
getChildren
Returns the immutable list of child nodes that correspond tolabeled
parsers syntactically enclosed inside parent parser. -
toString
-