Package | Description |
---|---|
org.antlr.runtime.debug | |
org.antlr.runtime.tree | |
org.antlr.tool |
Modifier and Type | Class and Description |
---|---|
static class |
RemoteDebugEventSocketListener.ProxyTree |
Modifier and Type | Method and Description |
---|---|
Tree |
RemoteDebugEventSocketListener.ProxyTree.dupNode() |
Modifier and Type | Class and Description |
---|---|
class |
BaseTree
A generic tree implementation with no payload.
|
class |
CommonErrorNode
A node representing erroneous token range in token stream
|
class |
CommonTree
A tree node that is wrapper for a Token object.
|
class |
ParseTree
A record of the rules used to match a token sequence.
|
static class |
TreeWizard.TreePattern
When using %label:TOKENNAME in a tree for parse(), we must
track the label.
|
static class |
TreeWizard.WildcardTreePattern |
Modifier and Type | Field and Description |
---|---|
static Tree |
Tree.INVALID_NODE |
Modifier and Type | Method and Description |
---|---|
Tree |
Tree.dupNode() |
Tree |
CommonTree.dupNode() |
Tree |
ParseTree.dupNode() |
Tree |
Tree.getAncestor(int ttype)
Walk upwards and get first ancestor with this token type.
|
Tree |
BaseTree.getAncestor(int ttype)
Walk upwards and get first ancestor with this token type.
|
Tree |
Tree.getChild(int i) |
Tree |
BaseTree.getChild(int i) |
Tree |
BaseTree.getFirstChildWithType(int type) |
Tree |
Tree.getParent() |
Tree |
CommonTree.getParent() |
Tree |
BaseTree.getParent()
BaseTree doesn't track parent pointers.
|
Modifier and Type | Method and Description |
---|---|
List<? extends Tree> |
BaseTree.getAncestors()
Return a list of all ancestors of this node.
|
Modifier and Type | Method and Description |
---|---|
void |
Tree.addChild(Tree t)
Add t as a child to this node.
|
void |
BaseTree.addChild(Tree t)
Add t as child of this node.
|
void |
BaseTree.sanityCheckParentAndChildIndexes(Tree parent,
int i) |
void |
Tree.setChild(int i,
Tree t)
Set ith child (0..n-1) to t; t must be non-null and non-nil node
|
void |
BaseTree.setChild(int i,
Tree t) |
void |
Tree.setParent(Tree t) |
void |
CommonTree.setParent(Tree t) |
void |
BaseTree.setParent(Tree t) |
org.antlr.stringtemplate.StringTemplate |
DOTTreeGenerator.toDOT(Tree tree)
Generate DOT (graphviz) for a whole tree not just a node.
|
Modifier and Type | Method and Description |
---|---|
void |
BaseTree.addChildren(List<? extends Tree> kids)
Add all elements of kids list as children of this node
|
Constructor and Description |
---|
BaseTree(Tree node)
Create a new node from an existing node does nothing for BaseTree
as there are no fields other than the children list, which cannot
be copied as the children are not considered part of this node.
|
Modifier and Type | Class and Description |
---|---|
class |
GrammarAST
Grammars are first converted to ASTs using this class and then are
converted to NFAs via a tree walker.
|
Modifier and Type | Method and Description |
---|---|
Tree |
GrammarAST.dupNode() |
Modifier and Type | Method and Description |
---|---|
static List<Tree> |
GrammarAST.descendants(Tree root) |
static List<Tree> |
GrammarAST.descendants(Tree root,
boolean insertDownUpNodes) |
Modifier and Type | Method and Description |
---|---|
static List<Tree> |
GrammarAST.descendants(Tree root) |
static List<Tree> |
GrammarAST.descendants(Tree root,
boolean insertDownUpNodes) |
static GrammarAST |
GrammarAST.dup(Tree t) |
boolean |
GrammarAST.hasSameTreeStructure(Tree other)
See if tree has exact token types and structure; no text
|
void |
GrammarAST.initialize(Tree ast) |
protected boolean |
GrammarSanity.isValidSimpleElementNode(Tree t) |
Copyright © 1992–2015 ANTLR. All rights reserved.