Uses of Interface
org.antlr.runtime.tree.Tree
Packages that use Tree
Package
Description
-
Uses of Tree in org.antlr.grammar.v3
Classes in org.antlr.grammar.v3 that implement Tree -
Uses of Tree in org.antlr.runtime.debug
Classes in org.antlr.runtime.debug that implement TreeMethods in org.antlr.runtime.debug that return Tree -
Uses of Tree in org.antlr.runtime.tree
Classes in org.antlr.runtime.tree that implement TreeModifier and TypeClassDescriptionclass
A generic tree implementation with no payload.class
A node representing erroneous token range in token streamclass
A tree node that is wrapper for a Token object.class
A record of the rules used to match a token sequence.static class
When using %label:TOKENNAME in a tree for parse(), we must track the label.static class
Fields in org.antlr.runtime.tree declared as TreeMethods in org.antlr.runtime.tree that return TreeModifier and TypeMethodDescriptionCommonTree.dupNode()
ParseTree.dupNode()
Tree.dupNode()
BaseTree.getAncestor
(int ttype) Walk upwards and get first ancestor with this token type.Tree.getAncestor
(int ttype) Walk upwards and get first ancestor with this token type.BaseTree.getChild
(int i) Tree.getChild
(int i) BaseTree.getFirstChildWithType
(int type) BaseTree.getParent()
BaseTree doesn't track parent pointers.CommonTree.getParent()
Tree.getParent()
Methods in org.antlr.runtime.tree that return types with arguments of type TreeModifier and TypeMethodDescriptionBaseTree.getAncestors()
Return a list of all ancestors of this node.Methods in org.antlr.runtime.tree with parameters of type TreeModifier and TypeMethodDescriptionvoid
Add t as child of this node.void
Add t as a child to this node.void
BaseTree.sanityCheckParentAndChildIndexes
(Tree parent, int i) void
void
Set ith child (0..n-1) to t; t must be non-null and non-nil nodevoid
void
void
org.antlr.stringtemplate.StringTemplate
Generate DOT (graphviz) for a whole tree not just a node.Method parameters in org.antlr.runtime.tree with type arguments of type TreeModifier and TypeMethodDescriptionvoid
BaseTree.addChildren
(List<? extends Tree> kids) Add all elements of kids list as children of this nodeConstructors in org.antlr.runtime.tree with parameters of type Tree -
Uses of Tree in org.antlr.tool
Classes in org.antlr.tool that implement TreeModifier and TypeClassDescriptionclass
Grammars are first converted to ASTs using this class and then are converted to NFAs via a tree walker.Methods in org.antlr.tool that return TreeMethods in org.antlr.tool that return types with arguments of type TreeModifier and TypeMethodDescriptionGrammarAST.descendants
(Tree root) GrammarAST.descendants
(Tree root, boolean insertDownUpNodes) Methods in org.antlr.tool with parameters of type TreeModifier and TypeMethodDescriptionGrammarAST.descendants
(Tree root) GrammarAST.descendants
(Tree root, boolean insertDownUpNodes) static GrammarAST
boolean
GrammarAST.hasSameTreeStructure
(Tree other) See if tree has exact token types and structure; no textvoid
GrammarAST.initialize
(Tree ast) protected boolean
GrammarSanity.isValidSimpleElementNode
(Tree t)