Package | Description |
---|---|
org.antlr.v4.runtime | |
org.antlr.v4.runtime.atn | |
org.antlr.v4.runtime.tree |
Modifier and Type | Class and Description |
---|---|
class |
ParserRuleContext
A rule invocation record for parsing.
|
Modifier and Type | Field and Description |
---|---|
RuleContext |
RuleContext.parent
What context invoked this rule?
|
Modifier and Type | Method and 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 and Description |
---|---|
void |
Recognizer.action(RuleContext _localctx,
int ruleIndex,
int actionIndex) |
RuleContext |
ParserRuleContext.addChild(RuleContext ruleInvocation) |
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.sempred(RuleContext _localctx,
int ruleIndex,
int actionIndex) |
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 |
---|---|
protected ATNConfigSet |
ParserATNSimulator.computeStartState(ATNState p,
RuleContext ctx,
boolean fullCtx) |
abstract boolean |
SemanticContext.eval(Recognizer<?,?> parser,
RuleContext outerContext)
For context independent predicates, we evaluate them without a local
context (i.e., null context).
|
boolean |
SemanticContext.Predicate.eval(Recognizer<?,?> parser,
RuleContext outerContext) |
boolean |
SemanticContext.AND.eval(Recognizer<?,?> parser,
RuleContext outerContext) |
boolean |
SemanticContext.OR.eval(Recognizer<?,?> parser,
RuleContext outerContext) |
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 . |
String |
PredictionContext.toString(Recognizer<?,?> recog,
RuleContext stop) |
Modifier and Type | Method and Description |
---|---|
RuleContext |
RuleNode.getRuleContext() |
Copyright © 1992-2013 ANTLR. All Rights Reserved.