接口的使用
org.antlr.runtime.tree.Tree
-
使用Tree的程序包 程序包 说明 org.antlr.runtime.debug org.antlr.runtime.tree org.antlr.tool -
-
org.antlr.runtime.debug中Tree的使用
实现Tree的org.antlr.runtime.debug中的类 修饰符和类型 类 说明 static classRemoteDebugEventSocketListener.ProxyTree返回Tree的org.antlr.runtime.debug中的方法 修饰符和类型 方法 说明 TreeRemoteDebugEventSocketListener.ProxyTree. dupNode() -
org.antlr.runtime.tree中Tree的使用
实现Tree的org.antlr.runtime.tree中的类 修饰符和类型 类 说明 classBaseTreeA generic tree implementation with no payload.classCommonErrorNodeA node representing erroneous token range in token streamclassCommonTreeA tree node that is wrapper for a Token object.classParseTreeA record of the rules used to match a token sequence.static classTreeWizard.TreePatternWhen using %label:TOKENNAME in a tree for parse(), we must track the label.static classTreeWizard.WildcardTreePattern声明为Tree的org.antlr.runtime.tree中的字段 修饰符和类型 字段 说明 static TreeTree. INVALID_NODE返回Tree的org.antlr.runtime.tree中的方法 修饰符和类型 方法 说明 TreeCommonTree. dupNode()TreeParseTree. dupNode()TreeTree. dupNode()TreeBaseTree. getAncestor(int ttype)Walk upwards and get first ancestor with this token type.TreeTree. getAncestor(int ttype)Walk upwards and get first ancestor with this token type.TreeBaseTree. getChild(int i)TreeTree. getChild(int i)TreeBaseTree. getFirstChildWithType(int type)TreeBaseTree. getParent()BaseTree doesn't track parent pointers.TreeCommonTree. getParent()TreeTree. getParent()返回变量类型为Tree的类型的org.antlr.runtime.tree中的方法 修饰符和类型 方法 说明 java.util.List<? extends Tree>BaseTree. getAncestors()Return a list of all ancestors of this node.参数类型为Tree的org.antlr.runtime.tree中的方法 修饰符和类型 方法 说明 voidBaseTree. addChild(Tree t)Add t as child of this node.voidTree. addChild(Tree t)Add t as a child to this node.voidBaseTree. sanityCheckParentAndChildIndexes(Tree parent, int i)voidBaseTree. setChild(int i, Tree t)voidTree. setChild(int i, Tree t)Set ith child (0..n-1) to t; t must be non-null and non-nil nodevoidBaseTree. setParent(Tree t)voidCommonTree. setParent(Tree t)voidTree. setParent(Tree t)org.antlr.stringtemplate.StringTemplateDOTTreeGenerator. toDOT(Tree tree)Generate DOT (graphviz) for a whole tree not just a node.类型变量类型为Tree的org.antlr.runtime.tree中的方法参数 修饰符和类型 方法 说明 voidBaseTree. addChildren(java.util.List<? extends Tree> kids)Add all elements of kids list as children of this node参数类型为Tree的org.antlr.runtime.tree中的构造器 构造器 说明 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. -
org.antlr.tool中Tree的使用
实现Tree的org.antlr.tool中的类 修饰符和类型 类 说明 classGrammarASTGrammars are first converted to ASTs using this class and then are converted to NFAs via a tree walker.返回Tree的org.antlr.tool中的方法 修饰符和类型 方法 说明 TreeGrammarAST. dupNode()返回变量类型为Tree的类型的org.antlr.tool中的方法 修饰符和类型 方法 说明 static java.util.List<Tree>GrammarAST. descendants(Tree root)static java.util.List<Tree>GrammarAST. descendants(Tree root, boolean insertDownUpNodes)参数类型为Tree的org.antlr.tool中的方法 修饰符和类型 方法 说明 static java.util.List<Tree>GrammarAST. descendants(Tree root)static java.util.List<Tree>GrammarAST. descendants(Tree root, boolean insertDownUpNodes)static GrammarASTGrammarAST. dup(Tree t)booleanGrammarAST. hasSameTreeStructure(Tree other)See if tree has exact token types and structure; no textvoidGrammarAST. initialize(Tree ast)protected booleanGrammarSanity. isValidSimpleElementNode(Tree t)
-