Uses of Class
org.antlr.v4.runtime.RuleContext
-
Packages that use RuleContext Package Description org.antlr.v4.runtime org.antlr.v4.runtime.atn org.antlr.v4.runtime.tree -
-
Uses of RuleContext in org.antlr.v4.runtime
Subclasses of RuleContext in org.antlr.v4.runtime 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
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 declared as RuleContext Modifier and Type Field Description RuleContext
RuleContext. parent
What context invoked this rule?Methods in org.antlr.v4.runtime that return RuleContext Modifier and Type Method Description RuleContext
ParserRuleContext. addChild(RuleContext ruleInvocation)
RuleContext
RecognitionException. getCtx()
Gets theRuleContext
at the time this exception was thrown.RuleContext
RuleContext. getParent()
RuleContext
RuleContext. getPayload()
RuleContext
RuleContext. getRuleContext()
Methods in org.antlr.v4.runtime with parameters of type RuleContext 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)
Constructors in org.antlr.v4.runtime with parameters of type RuleContext Constructor Description RuleContext(RuleContext parent, int invokingState)
-
Uses of RuleContext in org.antlr.v4.runtime.atn
Methods in org.antlr.v4.runtime.atn with parameters of type RuleContext 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 aRuleContext
tree to aPredictionContext
graph.IntervalSet
ATN. getExpectedTokens(int stateNumber, RuleContext context)
Computes the set of input symbols which could follow ATN state numberstateNumber
in the specified fullcontext
.IntervalSet
LL1Analyzer. LOOK(ATNState s, ATNState stopState, RuleContext ctx)
Compute set of tokens that can follows
in the ATN in the specifiedctx
.IntervalSet
LL1Analyzer. LOOK(ATNState s, RuleContext ctx)
Compute set of tokens that can follows
in the ATN in the specifiedctx
.IntervalSet
ATN. nextTokens(ATNState s, RuleContext ctx)
Compute the set of valid tokens that can occur starting in states
. -
Uses of RuleContext in org.antlr.v4.runtime.tree
Methods in org.antlr.v4.runtime.tree that return RuleContext Modifier and Type Method Description RuleContext
RuleNode. getRuleContext()
Methods in org.antlr.v4.runtime.tree with parameters of type RuleContext Modifier and Type Method Description void
ParseTree. setParent(RuleContext parent)
Set the parent for this node.void
TerminalNodeImpl. setParent(RuleContext parent)
-