public final class ParseTree extends Object
Modifier and Type | Method and Description |
---|---|
int |
getBeginIndex()
Returns the index in source where this node starts.
|
List<ParseTree> |
getChildren()
Returns the immutable list of child nodes that correspond to
labeled
parsers syntactically enclosed inside parent parser. |
int |
getEndIndex()
Returns the index in source where this node ends.
|
String |
getName()
Returns the node name, which is specified in
Parser.label(java.lang.String) . |
Object |
getValue()
Returns the parsed value of this node, or
null if it's a failed node. |
String |
toString() |
public String getName()
Parser.label(java.lang.String)
.public int getBeginIndex()
public int getEndIndex()
public Object getValue()
null
if it's a failed node.public List<ParseTree> getChildren()
labeled
parsers syntactically enclosed inside parent parser.Copyright © 2013–2019 jparsec. All rights reserved.