Uses of Class
org.antlr.v4.runtime.RuleContext
Packages that use RuleContext
Package
Description
-
Uses of RuleContext in org.antlr.v4.runtime
Subclasses of RuleContext in org.antlr.v4.runtimeModifier and TypeClassDescriptionclass
This class extendsParserRuleContext
by allowing the value ofInterpreterRuleContext.getRuleIndex()
to be explicitly set for the context.class
A rule invocation record for parsing.class
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 RuleContextMethods in org.antlr.v4.runtime that return RuleContextModifier and TypeMethodDescriptionParserRuleContext.addChild
(RuleContext ruleInvocation) RecognitionException.getCtx()
Gets theRuleContext
at the time this exception was thrown.RuleContext.getParent()
RuleContext.getPayload()
RuleContext.getRuleContext()
Methods in org.antlr.v4.runtime with parameters of type RuleContextModifier and TypeMethodDescriptionvoid
Recognizer.action
(RuleContext _localctx, int ruleIndex, int actionIndex) ParserRuleContext.addChild
(RuleContext ruleInvocation) Parser.getRuleInvocationStack
(RuleContext p) BufferedTokenStream.getText
(RuleContext ctx) TokenStream.getText
(RuleContext ctx) Return the text of all tokens in the source interval of the specified context.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) RuleContext.toString
(List<String> ruleNames, RuleContext stop) RuleContext.toString
(Recognizer<?, ?> recog, RuleContext stop) Constructors in org.antlr.v4.runtime with parameters of type RuleContext -
Uses of RuleContext in org.antlr.v4.runtime.atn
Methods in org.antlr.v4.runtime.atn with parameters of type RuleContextModifier and TypeMethodDescriptionprotected 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.AND.evalPrecedence
(Recognizer<?, ?> parser, RuleContext parserCallStack) SemanticContext.evalPrecedence
(Recognizer<?, ?> parser, RuleContext parserCallStack) Evaluate the precedence predicates for the context and reduce the result.SemanticContext.OR.evalPrecedence
(Recognizer<?, ?> parser, RuleContext parserCallStack) SemanticContext.PrecedencePredicate.evalPrecedence
(Recognizer<?, ?> parser, RuleContext parserCallStack) static PredictionContext
PredictionContext.fromRuleContext
(ATN atn, RuleContext outerContext) Convert aRuleContext
tree to aPredictionContext
graph.ATN.getExpectedTokens
(int stateNumber, RuleContext context) Computes the set of input symbols which could follow ATN state numberstateNumber
in the specified fullcontext
.LL1Analyzer.LOOK
(ATNState s, ATNState stopState, RuleContext ctx) Compute set of tokens that can follows
in the ATN in the specifiedctx
.LL1Analyzer.LOOK
(ATNState s, RuleContext ctx) Compute set of tokens that can follows
in the ATN in the specifiedctx
.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 RuleContextMethods in org.antlr.v4.runtime.tree with parameters of type RuleContextModifier and TypeMethodDescriptionvoid
ParseTree.setParent
(RuleContext parent) Set the parent for this node.void
TerminalNodeImpl.setParent
(RuleContext parent) -
Uses of RuleContext in org.antlr.v4.runtime.tree.xpath
Methods in org.antlr.v4.runtime.tree.xpath with parameters of type RuleContextModifier and TypeMethodDescriptionvoid
XPathLexer.action
(RuleContext _localctx, int ruleIndex, int actionIndex) -
Uses of RuleContext in org.antlr.v4.tool
Subclasses of RuleContext in org.antlr.v4.toolModifier and TypeClassDescriptionclass
AnInterpreterRuleContext
that knows which alternative for a rule was matched.