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 classASTNULLTypeThere is only one instance of this classclassBaseASTA Child-Sibling Tree.classCommonASTCommon AST node implementationclassCommonASTWithHiddenTokensA CommonAST whose initialization copies hidden token information from the Token used to create a node.classParseTreeclassParseTreeRuleclassParseTreeTokenFields in antlr declared as AST Modifier and Type Field Description protected ASTTreeParser. _retTreeWhere did this rule leave off parsing; avoids a return parameterASTASTPair. childprotected ASTASTIterator. cursorASTMismatchedTokenException. nodeASTNoViableAltException. nodeprotected ASTASTIterator. originalprotected ASTParser. returnASTAST return value for a rule is squirreled away hereprotected ASTTreeParser. returnASTAST return value for a rule is squirreled away hereASTASTPair. rootMethods in antlr that return AST Modifier and Type Method Description ASTASTFactory. create()Create a new empty AST node; if the user did not specify an AST node type, then create a default one: CommonAST.ASTASTFactory. create(int type)ASTASTFactory. create(int type, java.lang.String txt)ASTASTFactory. 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.ASTASTFactory. 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.ASTASTFactory. create(Token tok)ASTASTFactory. 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 ASTASTFactory. create(java.lang.Class c)ASTASTFactory. create(java.lang.String className)protected ASTASTFactory. createUsingCtor(Token token, java.lang.String className)ASTASTFactory. dup(AST t)Copy a single node with same Java AST objec type.ASTASTFactory. dupList(AST t)Duplicate tree including siblings of root.ASTASTFactory. 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.ASTParser. getAST()Get the AST return value squirreled away in the parserASTTreeParser. getAST()Get the AST return value squirreled away in the parserASTASTNULLType. getFirstChild()ASTBaseAST. getFirstChild()Get the first child of this node; null if not childrenASTASTNULLType. getNextSibling()ASTBaseAST. getNextSibling()Get the next sibling in line after this oneASTASTFactory. make(AST[] nodes)Make a tree from a list of nodes.ASTASTFactory. make(ASTArray nodes)Make a tree from a list of nodes, where the nodes are contained in an ASTArray objectASTASTIterator. 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 voidASTFactory. addASTChild(ASTPair currentAST, AST child)Add a child to the current ASTvoidASTNULLType. addChild(AST c)voidBaseAST. addChild(AST node)Add a node to the end of the child list for this nodeASTASTFactory. 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.ASTASTFactory. dup(AST t)Copy a single node with same Java AST objec type.ASTASTFactory. dupList(AST t)Duplicate tree including siblings of root.ASTASTFactory. 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.booleanASTNULLType. equals(AST t)booleanBaseAST. equals(AST t)Is node t equal to this in terms of token type and text?booleanASTNULLType. equalsList(AST t)booleanBaseAST. equalsList(AST t)Is t an exact structural and equals() match of this tree.booleanASTNULLType. equalsListPartial(AST t)booleanBaseAST. equalsListPartial(AST sub)Is 'sub' a subtree of this list? The siblings of the root are NOT ignored.booleanASTNULLType. equalsTree(AST t)booleanBaseAST. equalsTree(AST t)Is tree rooted at 'this' equal to 't'? The siblings of 'this' are ignored.booleanASTNULLType. equalsTreePartial(AST t)booleanBaseAST. equalsTreePartial(AST sub)Is 't' a subtree of the tree rooted at 'this'? The siblings of 'this' are ignored.ASTEnumerationASTNULLType. findAll(AST tree)ASTEnumerationBaseAST. findAll(AST target)Walk the tree looking for all exact subtree matches.ASTEnumerationASTNULLType. findAllPartial(AST subtree)ASTEnumerationBaseAST. findAllPartial(AST sub)Walk the tree looking for all subtrees.voidASTNULLType. initialize(AST t)abstract voidBaseAST. initialize(AST t)voidCommonAST. initialize(AST t)voidCommonASTWithHiddenTokens. initialize(AST t)voidParseTree. initialize(AST ast)booleanASTIterator. isSubtree(AST t, AST sub)Is 'sub' a subtree of 't' beginning at the root?ASTASTFactory. make(AST[] nodes)Make a tree from a list of nodes.voidASTFactory. makeASTRoot(ASTPair currentAST, AST root)Make an AST the root of current ASTprotected voidTreeParser. match(AST t, int ttype)voidTreeParser. 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 voidTreeParser. matchNot(AST t, int ttype)ASTASTIterator. next(AST template)Find the next subtree with structure and token types equal to those of 'template'.voidASTNULLType. setFirstChild(AST c)voidBaseAST. setFirstChild(AST c)voidASTNULLType. setNextSibling(AST n)voidBaseAST. setNextSibling(AST n)voidTreeParser. traceIn(java.lang.String rname, AST t)voidTreeParser. traceOut(java.lang.String rname, AST t)voidASTVisitor. visit(AST node)voidDumpASTVisitor. 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 ASTAST. getFirstChild()Get the first child of this node; null if no childrenASTAST. getNextSibling()Get the next sibling in line after this oneASTASTEnumeration. nextNode()Methods in antlr.collections with parameters of type AST Modifier and Type Method Description voidAST. addChild(AST c)Add a (rightmost) child to this nodebooleanAST. equals(AST t)booleanAST. equalsList(AST t)booleanAST. equalsListPartial(AST t)booleanAST. equalsTree(AST t)booleanAST. equalsTreePartial(AST t)ASTEnumerationAST. findAll(AST tree)ASTEnumerationAST. findAllPartial(AST subtree)voidAST. initialize(AST t)voidAST. setFirstChild(AST c)Set the first child of a node.voidAST. 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. arrayMethods in antlr.collections.impl that return AST Modifier and Type Method Description ASTASTEnumerator. nextNode()Methods in antlr.collections.impl with parameters of type AST Modifier and Type Method Description ASTArrayASTArray. 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) ASTJTreeASTModel. rootConstructors in antlr.debug.misc with parameters of type AST Constructor Description ASTFrame(java.lang.String lab, AST r)JTreeASTModel(AST t)
-