Uses of Interface
org.antlr.v4.runtime.tree.ParseTree
-
Packages that use ParseTree Package Description org.antlr.v4.runtime org.antlr.v4.runtime.tree org.antlr.v4.runtime.tree.pattern org.antlr.v4.runtime.tree.xpath -
-
Uses of ParseTree in org.antlr.v4.runtime
Classes in org.antlr.v4.runtime that implement ParseTree 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.Fields in org.antlr.v4.runtime with type parameters of type ParseTree Modifier and Type Field Description List<ParseTree>
ParserRuleContext. children
If we are debugging or building a parse tree for a visitor, we need to track all of the tokens and rule invocations associated with this rule's context.Methods in org.antlr.v4.runtime with type parameters of type ParseTree Modifier and Type Method Description <T extends ParseTree>
TParserRuleContext. addAnyChild(T t)
Add a parse tree node to this as a child.<T extends ParseTree>
TParserRuleContext. getChild(Class<? extends T> ctxType, int i)
Methods in org.antlr.v4.runtime that return ParseTree Modifier and Type Method Description ParseTree
ParserRuleContext. getChild(int i)
ParseTree
RuleContext. getChild(int i)
-
Uses of ParseTree in org.antlr.v4.runtime.tree
Subinterfaces of ParseTree in org.antlr.v4.runtime.tree Modifier and Type Interface Description interface
ErrorNode
interface
RuleNode
interface
TerminalNode
Classes in org.antlr.v4.runtime.tree that implement ParseTree Modifier and Type Class Description class
ErrorNodeImpl
Represents a token that was consumed during resynchronization rather than during a valid match operation.class
TerminalNodeImpl
Fields in org.antlr.v4.runtime.tree declared as ParseTree Modifier and Type Field Description ParseTree
TerminalNodeImpl. parent
Fields in org.antlr.v4.runtime.tree with type parameters of type ParseTree Modifier and Type Field Description protected Map<ParseTree,V>
ParseTreeProperty. annotations
Methods in org.antlr.v4.runtime.tree that return ParseTree Modifier and Type Method Description ParseTree
ParseTree. getChild(int i)
ParseTree
TerminalNodeImpl. getChild(int i)
ParseTree
ParseTree. getParent()
ParseTree
TerminalNodeImpl. getParent()
Methods in org.antlr.v4.runtime.tree that return types with arguments of type ParseTree Modifier and Type Method Description static List<ParseTree>
Trees. descendants(ParseTree t)
Deprecated.static List<ParseTree>
Trees. findAllNodes(ParseTree t, int index, boolean findTokens)
static Collection<ParseTree>
Trees. findAllRuleNodes(ParseTree t, int ruleIndex)
static Collection<ParseTree>
Trees. findAllTokenNodes(ParseTree t, int ttype)
static List<ParseTree>
Trees. getDescendants(ParseTree t)
Get all descendents; includes t itself.Methods in org.antlr.v4.runtime.tree with parameters of type ParseTree Modifier and Type Method Description static void
Trees. _findAllNodes(ParseTree t, int index, boolean findTokens, List<? super ParseTree> nodes)
static List<ParseTree>
Trees. descendants(ParseTree t)
Deprecated.static List<ParseTree>
Trees. findAllNodes(ParseTree t, int index, boolean findTokens)
static Collection<ParseTree>
Trees. findAllRuleNodes(ParseTree t, int ruleIndex)
static Collection<ParseTree>
Trees. findAllTokenNodes(ParseTree t, int ttype)
V
ParseTreeProperty. get(ParseTree node)
static List<ParseTree>
Trees. getDescendants(ParseTree t)
Get all descendents; includes t itself.static ParserRuleContext
Trees. getRootOfSubtreeEnclosingRegion(ParseTree t, int startTokenIndex, int stopTokenIndex)
Find smallest subtree of t enclosing range startTokenIndex..stopTokenIndex inclusively using postorder traversal.void
ParseTreeProperty. put(ParseTree node, V value)
V
ParseTreeProperty. removeFrom(ParseTree node)
T
AbstractParseTreeVisitor. visit(ParseTree tree)
Visit a parse tree, and return a user-defined result of the operation.T
ParseTreeVisitor. visit(ParseTree tree)
Visit a parse tree, and return a user-defined result of the operation.void
IterativeParseTreeWalker. walk(ParseTreeListener listener, ParseTree t)
void
ParseTreeWalker. walk(ParseTreeListener listener, ParseTree t)
Performs a walk on the given parse tree starting at the root and going down recursively with depth-first search.Method parameters in org.antlr.v4.runtime.tree with type arguments of type ParseTree Modifier and Type Method Description static void
Trees. _findAllNodes(ParseTree t, int index, boolean findTokens, List<? super ParseTree> nodes)
-
Uses of ParseTree in org.antlr.v4.runtime.tree.pattern
Methods in org.antlr.v4.runtime.tree.pattern that return ParseTree Modifier and Type Method Description ParseTree
ParseTreeMatch. get(String label)
Get the last node associated with a specificlabel
.ParseTree
ParseTreeMatch. getMismatchedNode()
Get the node at which we first detected a mismatch.ParseTree
ParseTreePattern. getPatternTree()
Get the tree pattern as aParseTree
.ParseTree
ParseTreeMatch. getTree()
Get the parse tree we are trying to match to a pattern.protected ParseTree
ParseTreePatternMatcher. matchImpl(ParseTree tree, ParseTree patternTree, MultiMap<String,ParseTree> labels)
Methods in org.antlr.v4.runtime.tree.pattern that return types with arguments of type ParseTree Modifier and Type Method Description List<ParseTree>
ParseTreeMatch. getAll(String label)
Return all nodes matching a rule or token tag with the specified label.MultiMap<String,ParseTree>
ParseTreeMatch. getLabels()
Return a mapping from label → [list of nodes].Methods in org.antlr.v4.runtime.tree.pattern with parameters of type ParseTree Modifier and Type Method Description List<ParseTreeMatch>
ParseTreePattern. findAll(ParseTree tree, String xpath)
Find all nodes using XPath and then try to match those subtrees against this tree pattern.protected RuleTagToken
ParseTreePatternMatcher. getRuleTagToken(ParseTree t)
Ist
(expr <expr>)
subtree?ParseTreeMatch
ParseTreePattern. match(ParseTree tree)
Match a specific parse tree against this tree pattern.ParseTreeMatch
ParseTreePatternMatcher. match(ParseTree tree, String pattern, int patternRuleIndex)
Comparepattern
matched as rulepatternRuleIndex
againsttree
and return aParseTreeMatch
object that contains the matched elements, or the node at which the match failed.ParseTreeMatch
ParseTreePatternMatcher. match(ParseTree tree, ParseTreePattern pattern)
Comparepattern
matched againsttree
and return aParseTreeMatch
object that contains the matched elements, or the node at which the match failed.boolean
ParseTreePattern. matches(ParseTree tree)
Determine whether or not a parse tree matches this tree pattern.boolean
ParseTreePatternMatcher. matches(ParseTree tree, String pattern, int patternRuleIndex)
Doespattern
matched as rulepatternRuleIndex
matchtree
?boolean
ParseTreePatternMatcher. matches(ParseTree tree, ParseTreePattern pattern)
Doespattern
matched as rule patternRuleIndex match tree? Pass in a compiled pattern instead of a string representation of a tree pattern.protected ParseTree
ParseTreePatternMatcher. matchImpl(ParseTree tree, ParseTree patternTree, MultiMap<String,ParseTree> labels)
Method parameters in org.antlr.v4.runtime.tree.pattern with type arguments of type ParseTree Modifier and Type Method Description protected ParseTree
ParseTreePatternMatcher. matchImpl(ParseTree tree, ParseTree patternTree, MultiMap<String,ParseTree> labels)
Constructors in org.antlr.v4.runtime.tree.pattern with parameters of type ParseTree Constructor Description ParseTreeMatch(ParseTree tree, ParseTreePattern pattern, MultiMap<String,ParseTree> labels, ParseTree mismatchedNode)
Constructs a new instance ofParseTreeMatch
from the specified parse tree and pattern.ParseTreePattern(ParseTreePatternMatcher matcher, String pattern, int patternRuleIndex, ParseTree patternTree)
Construct a new instance of theParseTreePattern
class.Constructor parameters in org.antlr.v4.runtime.tree.pattern with type arguments of type ParseTree Constructor Description ParseTreeMatch(ParseTree tree, ParseTreePattern pattern, MultiMap<String,ParseTree> labels, ParseTree mismatchedNode)
Constructs a new instance ofParseTreeMatch
from the specified parse tree and pattern. -
Uses of ParseTree in org.antlr.v4.runtime.tree.xpath
Methods in org.antlr.v4.runtime.tree.xpath that return types with arguments of type ParseTree Modifier and Type Method Description Collection<ParseTree>
XPath. evaluate(ParseTree t)
Return a list of all nodes starting att
as root that satisfy the path.abstract Collection<ParseTree>
XPathElement. evaluate(ParseTree t)
Given tree rooted att
return all nodes matched by this path element.Collection<ParseTree>
XPathRuleAnywhereElement. evaluate(ParseTree t)
Collection<ParseTree>
XPathRuleElement. evaluate(ParseTree t)
Collection<ParseTree>
XPathTokenAnywhereElement. evaluate(ParseTree t)
Collection<ParseTree>
XPathTokenElement. evaluate(ParseTree t)
Collection<ParseTree>
XPathWildcardAnywhereElement. evaluate(ParseTree t)
Collection<ParseTree>
XPathWildcardElement. evaluate(ParseTree t)
static Collection<ParseTree>
XPath. findAll(ParseTree tree, String xpath, Parser parser)
Methods in org.antlr.v4.runtime.tree.xpath with parameters of type ParseTree Modifier and Type Method Description Collection<ParseTree>
XPath. evaluate(ParseTree t)
Return a list of all nodes starting att
as root that satisfy the path.abstract Collection<ParseTree>
XPathElement. evaluate(ParseTree t)
Given tree rooted att
return all nodes matched by this path element.Collection<ParseTree>
XPathRuleAnywhereElement. evaluate(ParseTree t)
Collection<ParseTree>
XPathRuleElement. evaluate(ParseTree t)
Collection<ParseTree>
XPathTokenAnywhereElement. evaluate(ParseTree t)
Collection<ParseTree>
XPathTokenElement. evaluate(ParseTree t)
Collection<ParseTree>
XPathWildcardAnywhereElement. evaluate(ParseTree t)
Collection<ParseTree>
XPathWildcardElement. evaluate(ParseTree t)
static Collection<ParseTree>
XPath. findAll(ParseTree tree, String xpath, Parser parser)
-