public interface ParseTree extends SyntaxTree
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(ParseTreeVisitor<? extends T> visitor)
The ParseTreeVisitor needs a double dispatch method
|
ParseTree |
getChild(int i)
If there are children, get the ith value indexed from 0.
|
ParseTree |
getParent()
The parent of this node.
|
String |
getText()
Return the combined text of all leaf nodes.
|
String |
toStringTree(Parser parser)
Specialize toStringTree so that it can print out more information
based upon the parser.
|
getSourceInterval
getChildCount, getPayload, toStringTree
ParseTree getParent()
Tree
ParseTree getChild(int i)
Tree
<T> T accept(ParseTreeVisitor<? extends T> visitor)
String getText()
Copyright © 2012. All Rights Reserved.