Package | Description |
---|---|
org.antlr.v4.runtime | |
org.antlr.v4.runtime.tree |
Modifier and Type | Class and Description |
---|---|
class |
InterpreterRuleContext
This class extends
ParserRuleContext by allowing the value of
InterpreterRuleContext.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.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ErrorNode |
interface |
ParseTree
An interface to access the tree of
RuleContext 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 |
Modifier and Type | Class and Description |
---|---|
class |
ErrorNodeImpl
Represents a token that was consumed during resynchronization
rather than during a valid match operation.
|
class |
TerminalNodeImpl |
Modifier and Type | Method and Description |
---|---|
static Tree |
Trees.findNodeSuchThat(Tree t,
Predicate<Tree> pred)
Return first node satisfying the pred
|
Tree |
Tree.getChild(int i)
If there are children, get the
i th value indexed from 0. |
Tree |
Tree.getParent()
The parent of this node.
|
Modifier and Type | Method and 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 node
|
Modifier and Type | Method and Description |
---|---|
static Tree |
Trees.findNodeSuchThat(Tree t,
Predicate<Tree> pred)
Return first node satisfying the pred
|
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 node
|
static 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.
|
Modifier and Type | Method and Description |
---|---|
static Tree |
Trees.findNodeSuchThat(Tree t,
Predicate<Tree> pred)
Return first node satisfying the pred
|
Copyright © 1992–2018 ANTLR. All rights reserved.