| Package | Description |
|---|---|
| org.antlr.v4.runtime | |
| org.antlr.v4.runtime.atn | |
| org.antlr.v4.runtime.tree | |
| org.antlr.v4.runtime.tree.xpath |
| 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 |
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 | Field and Description |
|---|---|
RuleContext |
RuleContext.parent
What context invoked this rule?
|
| Modifier and Type | Method and Description |
|---|---|
static RuleContext |
RuleContext.getChildContext(RuleContext parent,
int invokingState) |
RuleContext |
RecognitionException.getContext()
Gets the
RuleContext at the time this exception was thrown. |
RuleContext |
RuleContext.getParent() |
RuleContext |
RuleContext.getPayload() |
RuleContext |
RuleContext.getRuleContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
Recognizer.action(RuleContext _localctx,
int ruleIndex,
int actionIndex) |
void |
ParserRuleContext.addChild(RuleContext ruleInvocation) |
static RuleContext |
RuleContext.getChildContext(RuleContext parent,
int invokingState) |
List<String> |
Parser.getRuleInvocationStack(RuleContext p) |
String |
UnbufferedTokenStream.getText(RuleContext ctx) |
String |
TokenStream.getText(RuleContext ctx)
Return the text of all tokens in the source interval of the specified
context.
|
String |
BufferedTokenStream.getText(RuleContext ctx) |
boolean |
Recognizer.precpred(RuleContext localctx,
int precedence) |
boolean |
Parser.precpred(RuleContext localctx,
int precedence) |
boolean |
Recognizer.sempred(RuleContext _localctx,
int ruleIndex,
int actionIndex) |
void |
RuleContext.setParent(RuleContext parent) |
String |
RuleContext.toString(List<String> ruleNames,
RuleContext stop) |
String |
RuleContext.toString(Recognizer<?,?> recog,
RuleContext stop) |
| Constructor and Description |
|---|
RuleContext(RuleContext parent,
int invokingState) |
| Modifier and Type | Method and Description |
|---|---|
abstract <T> boolean |
SemanticContext.eval(Recognizer<T,?> parser,
RuleContext parserCallStack)
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
<T> boolean |
SemanticContext.Predicate.eval(Recognizer<T,?> parser,
RuleContext parserCallStack) |
<T> boolean |
SemanticContext.PrecedencePredicate.eval(Recognizer<T,?> parser,
RuleContext parserCallStack) |
<T> boolean |
SemanticContext.AND.eval(Recognizer<T,?> parser,
RuleContext parserCallStack)
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
<T> boolean |
SemanticContext.OR.eval(Recognizer<T,?> parser,
RuleContext parserCallStack)
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
SemanticContext |
SemanticContext.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack)
Evaluate the precedence predicates for the context and reduce the result.
|
SemanticContext |
SemanticContext.PrecedencePredicate.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
SemanticContext |
SemanticContext.AND.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
SemanticContext |
SemanticContext.OR.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
static PredictionContext |
PredictionContext.fromRuleContext(ATN atn,
RuleContext outerContext) |
static PredictionContext |
PredictionContext.fromRuleContext(ATN atn,
RuleContext outerContext,
boolean fullContext) |
IntervalSet |
ATN.getExpectedTokens(int stateNumber,
RuleContext context)
Computes the set of input symbols which could follow ATN state number
stateNumber in the specified full context. |
protected int |
ParserATNSimulator.getReturnState(RuleContext context) |
| Modifier and Type | Method and Description |
|---|---|
RuleContext |
RuleNode.getRuleContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
TerminalNodeImpl.setParent(RuleContext parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
XPathLexer.action(RuleContext _localctx,
int ruleIndex,
int actionIndex) |
boolean |
XPathLexer.sempred(RuleContext _localctx,
int ruleIndex,
int predIndex) |
Copyright © 1992–2024 Daniel Sun. All rights reserved.