Uses of Interface
org.antlr.v4.runtime.tree.Tree
-
Packages that use Tree Package Description org.antlr.v4.runtime org.antlr.v4.runtime.tree -
-
Uses of Tree in org.antlr.v4.runtime
Classes in org.antlr.v4.runtime that implement Tree Modifier and Type Class Description classInterpreterRuleContextThis class extendsParserRuleContextby allowing the value ofInterpreterRuleContext.getRuleIndex()to be explicitly set for the context.classParserRuleContextA rule invocation record for parsing.classRuleContextA rule context is a record of a single rule invocation.classRuleContextWithAltNumA handy class for use with options {contextSuperClass=org.antlr.v4.runtime.RuleContextWithAltNum;} that provides a backing field / impl for the outer alternative number matched for an internal parse tree node. -
Uses of Tree in org.antlr.v4.runtime.tree
Subinterfaces of Tree in org.antlr.v4.runtime.tree Modifier and Type Interface Description interfaceErrorNodeinterfaceParseTreeAn interface to access the tree ofRuleContextobjects created during a parse that makes the data structure look like a simple parse tree.interfaceRuleNodeinterfaceSyntaxTreeA tree that knows about an interval in a token stream is some kind of syntax tree.interfaceTerminalNodeClasses in org.antlr.v4.runtime.tree that implement Tree Modifier and Type Class Description classErrorNodeImplRepresents a token that was consumed during resynchronization rather than during a valid match operation.classTerminalNodeImplMethods in org.antlr.v4.runtime.tree that return Tree Modifier and Type Method Description static TreeTrees. findNodeSuchThat(Tree t, Predicate<Tree> pred)Return first node satisfying the predTreeTree. getChild(int i)If there are children, get theith value indexed from 0.TreeTree. getParent()The parent of this node.Methods in org.antlr.v4.runtime.tree that return types with arguments of type Tree Modifier and Type Method Description static List<? extends Tree>Trees. getAncestors(Tree t)Return a list of all ancestors of this node.static List<Tree>Trees. getChildren(Tree t)Return ordered list of all children of this nodeMethods in org.antlr.v4.runtime.tree with parameters of type Tree Modifier and Type Method Description static TreeTrees. findNodeSuchThat(Tree t, Predicate<Tree> pred)Return first node satisfying the predstatic List<? extends Tree>Trees. getAncestors(Tree t)Return a list of all ancestors of this node.static List<Tree>Trees. getChildren(Tree t)Return ordered list of all children of this nodestatic StringTrees. getNodeText(Tree t, List<String> ruleNames)static StringTrees. getNodeText(Tree t, Parser recog)static booleanTrees. isAncestorOf(Tree t, Tree u)Return true if t is u's parent or a node on path to root from u.static StringTrees. toStringTree(Tree t)Print out a whole tree in LISP form.static StringTrees. toStringTree(Tree t, List<String> ruleNames)Print out a whole tree in LISP form.static StringTrees. toStringTree(Tree t, Parser recog)Print out a whole tree in LISP form.Method parameters in org.antlr.v4.runtime.tree with type arguments of type Tree Modifier and Type Method Description static TreeTrees. findNodeSuchThat(Tree t, Predicate<Tree> pred)Return first node satisfying the pred
-