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 class
InterpreterRuleContext
This class extendsParserRuleContext
by allowing the value ofInterpreterRuleContext.getRuleIndex()
to be explicitly set for the context.class
ParserRuleContext
A rule invocation record for parsing.class
RuleContext
A rule context is a record of a single rule invocation.class
RuleContextWithAltNum
A 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 interface
ErrorNode
interface
ParseTree
An interface to access the tree ofRuleContext
objects created during a parse that makes the data structure look like a simple parse tree.interface
RuleNode
interface
SyntaxTree
A tree that knows about an interval in a token stream is some kind of syntax tree.interface
TerminalNode
Classes in org.antlr.v4.runtime.tree that implement Tree Modifier and Type Class Description class
ErrorNodeImpl
Represents a token that was consumed during resynchronization rather than during a valid match operation.class
TerminalNodeImpl
Methods in org.antlr.v4.runtime.tree that return Tree Modifier and Type Method Description static Tree
Trees. findNodeSuchThat(Tree t, Predicate<Tree> pred)
Return first node satisfying the predTree
Tree. getChild(int i)
If there are children, get thei
th value indexed from 0.Tree
Tree. 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 Tree
Trees. 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 String
Trees. getNodeText(Tree t, List<String> ruleNames)
static String
Trees. getNodeText(Tree t, Parser recog)
static boolean
Trees. isAncestorOf(Tree t, Tree u)
Return true if t is u's parent or a node on path to root from u.static String
Trees. toStringTree(Tree t)
Print out a whole tree in LISP form.static String
Trees. toStringTree(Tree t, List<String> ruleNames)
Print out a whole tree in LISP form.static String
Trees. 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 Tree
Trees. findNodeSuchThat(Tree t, Predicate<Tree> pred)
Return first node satisfying the pred
-