Package | Description |
---|---|
org.antlr.v4.runtime | |
org.antlr.v4.runtime.atn | |
org.antlr.v4.runtime.tree | |
org.antlr.v4.tool |
Modifier and Type | Class | 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 | Description |
---|---|---|
RuleContext |
RuleContext.parent |
What context invoked this rule?
|
Modifier and Type | Method | Description |
---|---|---|
RuleContext |
ParserRuleContext.addChild(RuleContext ruleInvocation) |
|
RuleContext |
RecognitionException.getCtx() |
Gets the
RuleContext at the time this exception was thrown. |
RuleContext |
RuleContext.getParent() |
|
RuleContext |
RuleContext.getPayload() |
|
RuleContext |
RuleContext.getRuleContext() |
Modifier and Type | Method | Description |
---|---|---|
void |
Recognizer.action(RuleContext _localctx,
int ruleIndex,
int actionIndex) |
|
RuleContext |
ParserRuleContext.addChild(RuleContext ruleInvocation) |
|
List<String> |
Parser.getRuleInvocationStack(RuleContext p) |
|
String |
BufferedTokenStream.getText(RuleContext ctx) |
|
String |
TokenStream.getText(RuleContext ctx) |
Return the text of all tokens in the source interval of the specified
context.
|
String |
UnbufferedTokenStream.getText(RuleContext ctx) |
|
boolean |
Parser.precpred(RuleContext localctx,
int precedence) |
|
boolean |
Recognizer.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 | Description |
---|---|
RuleContext(RuleContext parent,
int invokingState) |
Modifier and Type | Method | Description |
---|---|---|
protected ATNConfigSet |
ParserATNSimulator.computeStartState(ATNState p,
RuleContext ctx,
boolean fullCtx) |
|
boolean |
SemanticContext.AND.eval(Recognizer<?,?> parser,
RuleContext parserCallStack) |
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
abstract boolean |
SemanticContext.eval(Recognizer<?,?> parser,
RuleContext parserCallStack) |
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
boolean |
SemanticContext.OR.eval(Recognizer<?,?> parser,
RuleContext parserCallStack) |
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
boolean |
SemanticContext.PrecedencePredicate.eval(Recognizer<?,?> parser,
RuleContext parserCallStack) |
|
boolean |
SemanticContext.Predicate.eval(Recognizer<?,?> parser,
RuleContext parserCallStack) |
|
SemanticContext |
SemanticContext.AND.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
|
SemanticContext |
SemanticContext.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
Evaluate the precedence predicates for the context and reduce the result.
|
SemanticContext |
SemanticContext.OR.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
|
SemanticContext |
SemanticContext.PrecedencePredicate.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
|
static PredictionContext |
PredictionContext.fromRuleContext(ATN atn,
RuleContext outerContext) |
Convert a
RuleContext tree to a PredictionContext graph. |
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 . |
IntervalSet |
LL1Analyzer.LOOK(ATNState s,
ATNState stopState,
RuleContext ctx) |
Compute set of tokens that can follow
s in the ATN in the
specified ctx . |
IntervalSet |
LL1Analyzer.LOOK(ATNState s,
RuleContext ctx) |
Compute set of tokens that can follow
s in the ATN in the
specified ctx . |
IntervalSet |
ATN.nextTokens(ATNState s,
RuleContext ctx) |
Compute the set of valid tokens that can occur starting in state
s . |
Modifier and Type | Method | Description |
---|---|---|
RuleContext |
RuleNode.getRuleContext() |
Modifier and Type | Method | Description |
---|---|---|
void |
ParseTree.setParent(RuleContext parent) |
Set the parent for this node.
|
void |
TerminalNodeImpl.setParent(RuleContext parent) |
Modifier and Type | Class | Description |
---|---|---|
class |
GrammarInterpreterRuleContext |
An
InterpreterRuleContext that knows which alternative
for a rule was matched. |
Copyright © 1992–2019 ANTLR. All rights reserved.