Uses of Interface
antlr.collections.AST
-
Packages that use AST Package Description antlr antlr.collections antlr.collections.impl antlr.debug.misc -
-
Uses of AST in antlr
Classes in antlr that implement AST Modifier and Type Class Description class
ASTNULLType
There is only one instance of this classclass
BaseAST
A Child-Sibling Tree.class
CommonAST
Common AST node implementationclass
CommonASTWithHiddenTokens
A CommonAST whose initialization copies hidden token information from the Token used to create a node.class
ParseTree
class
ParseTreeRule
class
ParseTreeToken
Fields in antlr declared as AST Modifier and Type Field Description protected AST
TreeParser. _retTree
Where did this rule leave off parsing; avoids a return parameterAST
ASTPair. child
protected AST
ASTIterator. cursor
AST
MismatchedTokenException. node
AST
NoViableAltException. node
protected AST
ASTIterator. original
protected AST
Parser. returnAST
AST return value for a rule is squirreled away hereprotected AST
TreeParser. returnAST
AST return value for a rule is squirreled away hereAST
ASTPair. root
Methods in antlr that return AST Modifier and Type Method Description AST
ASTFactory. create()
Create a new empty AST node; if the user did not specify an AST node type, then create a default one: CommonAST.AST
ASTFactory. create(int type)
AST
ASTFactory. create(int type, java.lang.String txt)
AST
ASTFactory. create(int type, java.lang.String txt, java.lang.String className)
Create an AST node with the token type and text passed in, but with a specific Java object type.AST
ASTFactory. create(AST tr)
Create a new empty AST node; if the user did not specify an AST node type, then create a default one: CommonAST.AST
ASTFactory. create(Token tok)
AST
ASTFactory. create(Token tok, java.lang.String className)
ANTLR generates reference to this when you reference a token that has a specified heterogeneous AST node type.protected AST
ASTFactory. create(java.lang.Class c)
AST
ASTFactory. create(java.lang.String className)
protected AST
ASTFactory. createUsingCtor(Token token, java.lang.String className)
AST
ASTFactory. dup(AST t)
Copy a single node with same Java AST objec type.AST
ASTFactory. dupList(AST t)
Duplicate tree including siblings of root.AST
ASTFactory. dupTree(AST t)
Duplicate a tree, assuming this is a root node of a tree-- duplicate that node and what's below; ignore siblings of root node.AST
Parser. getAST()
Get the AST return value squirreled away in the parserAST
TreeParser. getAST()
Get the AST return value squirreled away in the parserAST
ASTNULLType. getFirstChild()
AST
BaseAST. getFirstChild()
Get the first child of this node; null if not childrenAST
ASTNULLType. getNextSibling()
AST
BaseAST. getNextSibling()
Get the next sibling in line after this oneAST
ASTFactory. make(AST[] nodes)
Make a tree from a list of nodes.AST
ASTFactory. make(ASTArray nodes)
Make a tree from a list of nodes, where the nodes are contained in an ASTArray objectAST
ASTIterator. next(AST template)
Find the next subtree with structure and token types equal to those of 'template'.Methods in antlr with parameters of type AST Modifier and Type Method Description void
ASTFactory. addASTChild(ASTPair currentAST, AST child)
Add a child to the current ASTvoid
ASTNULLType. addChild(AST c)
void
BaseAST. addChild(AST node)
Add a node to the end of the child list for this nodeAST
ASTFactory. create(AST tr)
Create a new empty AST node; if the user did not specify an AST node type, then create a default one: CommonAST.AST
ASTFactory. dup(AST t)
Copy a single node with same Java AST objec type.AST
ASTFactory. dupList(AST t)
Duplicate tree including siblings of root.AST
ASTFactory. dupTree(AST t)
Duplicate a tree, assuming this is a root node of a tree-- duplicate that node and what's below; ignore siblings of root node.boolean
ASTNULLType. equals(AST t)
boolean
BaseAST. equals(AST t)
Is node t equal to this in terms of token type and text?boolean
ASTNULLType. equalsList(AST t)
boolean
BaseAST. equalsList(AST t)
Is t an exact structural and equals() match of this tree.boolean
ASTNULLType. equalsListPartial(AST t)
boolean
BaseAST. equalsListPartial(AST sub)
Is 'sub' a subtree of this list? The siblings of the root are NOT ignored.boolean
ASTNULLType. equalsTree(AST t)
boolean
BaseAST. equalsTree(AST t)
Is tree rooted at 'this' equal to 't'? The siblings of 'this' are ignored.boolean
ASTNULLType. equalsTreePartial(AST t)
boolean
BaseAST. equalsTreePartial(AST sub)
Is 't' a subtree of the tree rooted at 'this'? The siblings of 'this' are ignored.ASTEnumeration
ASTNULLType. findAll(AST tree)
ASTEnumeration
BaseAST. findAll(AST target)
Walk the tree looking for all exact subtree matches.ASTEnumeration
ASTNULLType. findAllPartial(AST subtree)
ASTEnumeration
BaseAST. findAllPartial(AST sub)
Walk the tree looking for all subtrees.void
ASTNULLType. initialize(AST t)
abstract void
BaseAST. initialize(AST t)
void
CommonAST. initialize(AST t)
void
CommonASTWithHiddenTokens. initialize(AST t)
void
ParseTree. initialize(AST ast)
boolean
ASTIterator. isSubtree(AST t, AST sub)
Is 'sub' a subtree of 't' beginning at the root?AST
ASTFactory. make(AST[] nodes)
Make a tree from a list of nodes.void
ASTFactory. makeASTRoot(ASTPair currentAST, AST root)
Make an AST the root of current ASTprotected void
TreeParser. match(AST t, int ttype)
void
TreeParser. match(AST t, BitSet b)
Make sure current lookahead symbol matches the given set Throw an exception upon mismatch, which is catch by either the error handler or by the syntactic predicate.protected void
TreeParser. matchNot(AST t, int ttype)
AST
ASTIterator. next(AST template)
Find the next subtree with structure and token types equal to those of 'template'.void
ASTNULLType. setFirstChild(AST c)
void
BaseAST. setFirstChild(AST c)
void
ASTNULLType. setNextSibling(AST n)
void
BaseAST. setNextSibling(AST n)
void
TreeParser. traceIn(java.lang.String rname, AST t)
void
TreeParser. traceOut(java.lang.String rname, AST t)
void
ASTVisitor. visit(AST node)
void
DumpASTVisitor. visit(AST node)
Constructors in antlr with parameters of type AST Constructor Description ASTIterator(AST t)
MismatchedTokenException(java.lang.String[] tokenNames_, AST node_, int expecting_, boolean matchNot)
MismatchedTokenException(java.lang.String[] tokenNames_, AST node_, int lower, int upper_, boolean matchNot)
MismatchedTokenException(java.lang.String[] tokenNames_, AST node_, BitSet set_, boolean matchNot)
NoViableAltException(AST t)
-
Uses of AST in antlr.collections
Methods in antlr.collections that return AST Modifier and Type Method Description AST
AST. getFirstChild()
Get the first child of this node; null if no childrenAST
AST. getNextSibling()
Get the next sibling in line after this oneAST
ASTEnumeration. nextNode()
Methods in antlr.collections with parameters of type AST Modifier and Type Method Description void
AST. addChild(AST c)
Add a (rightmost) child to this nodeboolean
AST. equals(AST t)
boolean
AST. equalsList(AST t)
boolean
AST. equalsListPartial(AST t)
boolean
AST. equalsTree(AST t)
boolean
AST. equalsTreePartial(AST t)
ASTEnumeration
AST. findAll(AST tree)
ASTEnumeration
AST. findAllPartial(AST subtree)
void
AST. initialize(AST t)
void
AST. setFirstChild(AST c)
Set the first child of a node.void
AST. setNextSibling(AST n)
Set the next sibling after this one. -
Uses of AST in antlr.collections.impl
Fields in antlr.collections.impl declared as AST Modifier and Type Field Description AST[]
ASTArray. array
Methods in antlr.collections.impl that return AST Modifier and Type Method Description AST
ASTEnumerator. nextNode()
Methods in antlr.collections.impl with parameters of type AST Modifier and Type Method Description ASTArray
ASTArray. add(AST node)
-
Uses of AST in antlr.debug.misc
Fields in antlr.debug.misc declared as AST Modifier and Type Field Description (package private) AST
JTreeASTModel. root
Constructors in antlr.debug.misc with parameters of type AST Constructor Description ASTFrame(java.lang.String lab, AST r)
JTreeASTModel(AST t)
-