Uses of Class
org.antlr.v4.runtime.ParserRuleContext
- 
Packages that use ParserRuleContext Package Description org.antlr.v4.runtime org.antlr.v4.runtime.atn org.antlr.v4.runtime.tree 
- 
- 
Uses of ParserRuleContext in org.antlr.v4.runtimeSubclasses of ParserRuleContext in org.antlr.v4.runtime Modifier and Type Class Description classInterpreterRuleContextThis class extendsParserRuleContextby allowing the value ofInterpreterRuleContext.getRuleIndex()to be explicitly set for the context.classRuleContextWithAltNumA 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 ParserRuleContext Modifier and Type Field Description protected ParserRuleContextParser. _ctxTheParserRuleContextobject for the currently executing rule.static ParserRuleContextParserRuleContext. EMPTYprotected ParserRuleContextDefaultErrorStrategy. nextTokensContextThis field is used to propagate information about the lookahead following the previous match.Fields in org.antlr.v4.runtime with type parameters of type ParserRuleContext Modifier and Type Field Description protected Deque<Pair<ParserRuleContext,Integer>>ParserInterpreter. _parentContextStackThis stack corresponds to the _parentctx, _parentState pair of locals that would exist on call stack frames with a recursive descent parser; in the generated function for a left-recursive rule you'd see: private EContext e(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; // Pair.a int _parentState = getState(); // Pair.b ...Methods in org.antlr.v4.runtime with type parameters of type ParserRuleContext Modifier and Type Method Description <T extends ParserRuleContext>
 TParserRuleContext. getRuleContext(Class<? extends T> ctxType, int i)<T extends ParserRuleContext>
 List<T>ParserRuleContext. getRuleContexts(Class<? extends T> ctxType)Methods in org.antlr.v4.runtime that return ParserRuleContext Modifier and Type Method Description ParserRuleContextParser. getContext()ParserRuleContextParser. getInvokingContext(int ruleIndex)ParserRuleContextParserRuleContext. getParent()ParserRuleContextParser. getRuleContext()ParserRuleContextParserInterpreter. parse(int startRuleIndex)Begin parsing at startRuleIndexMethods in org.antlr.v4.runtime with parameters of type ParserRuleContext Modifier and Type Method Description voidParserRuleContext. copyFrom(ParserRuleContext ctx)COPY a ctx (I'm deliberately not using copy constructor) to avoid confusion with creating node with parent.ErrorNodeParser. createErrorNode(ParserRuleContext parent, Token t)How to create an error node, given a token, associated with a parent.protected InterpreterRuleContextParserInterpreter. createInterpreterRuleContext(ParserRuleContext parent, int invokingStateNumber, int ruleIndex)Provide simple "factory" for InterpreterRuleContext's.TerminalNodeParser. createTerminalNode(ParserRuleContext parent, Token t)How to create a token leaf node associated with a parent.voidParser.TraceListener. enterEveryRule(ParserRuleContext ctx)voidParser.TrimToSizeListener. enterEveryRule(ParserRuleContext ctx)voidParser. enterOuterAlt(ParserRuleContext localctx, int altNum)voidParser. enterRecursionRule(ParserRuleContext localctx, int ruleIndex)Deprecated.voidParser. enterRecursionRule(ParserRuleContext localctx, int state, int ruleIndex, int precedence)voidParserInterpreter. enterRecursionRule(ParserRuleContext localctx, int state, int ruleIndex, int precedence)voidParser. enterRule(ParserRuleContext localctx, int state, int ruleIndex)Always called by generated parsers upon entry to a rule.voidParser.TraceListener. exitEveryRule(ParserRuleContext ctx)voidParser.TrimToSizeListener. exitEveryRule(ParserRuleContext ctx)voidParser. pushNewRecursionContext(ParserRuleContext localctx, int state, int ruleIndex)LikeParser.enterRule(org.antlr.v4.runtime.ParserRuleContext, int, int)but for recursive rules.voidParser. setContext(ParserRuleContext ctx)voidParser. unrollRecursionContexts(ParserRuleContext _parentctx)Constructors in org.antlr.v4.runtime with parameters of type ParserRuleContext Constructor Description InputMismatchException(Parser recognizer, int state, ParserRuleContext ctx)InterpreterRuleContext(ParserRuleContext parent, int invokingStateNumber, int ruleIndex)Constructs a newInterpreterRuleContextwith the specified parent, invoking state, and rule index.NoViableAltException(Parser recognizer, TokenStream input, Token startToken, Token offendingToken, ATNConfigSet deadEndConfigs, ParserRuleContext ctx)ParserRuleContext(ParserRuleContext parent, int invokingStateNumber)RecognitionException(String message, Recognizer<?,?> recognizer, IntStream input, ParserRuleContext ctx)RecognitionException(Recognizer<?,?> recognizer, IntStream input, ParserRuleContext ctx)RuleContextWithAltNum(ParserRuleContext parent, int invokingStateNumber)
- 
Uses of ParserRuleContext in org.antlr.v4.runtime.atnFields in org.antlr.v4.runtime.atn declared as ParserRuleContext Modifier and Type Field Description protected ParserRuleContextParserATNSimulator. _outerContextMethods in org.antlr.v4.runtime.atn with parameters of type ParserRuleContext Modifier and Type Method Description intParserATNSimulator. adaptivePredict(TokenStream input, int decision, ParserRuleContext outerContext)intProfilingATNSimulator. adaptivePredict(TokenStream input, int decision, ParserRuleContext outerContext)protected booleanParserATNSimulator. evalSemanticContext(SemanticContext pred, ParserRuleContext parserCallStack, int alt, boolean fullCtx)Evaluate a semantic context within a specific parser context.protected BitSetParserATNSimulator. evalSemanticContext(DFAState.PredPrediction[] predPredictions, ParserRuleContext outerContext, boolean complete)Look through a list of predicate/alt pairs, returning alts for the pairs that win.protected booleanProfilingATNSimulator. evalSemanticContext(SemanticContext pred, ParserRuleContext parserCallStack, int alt, boolean fullCtx)protected intParserATNSimulator. execATN(DFA dfa, DFAState s0, TokenStream input, int startIndex, ParserRuleContext outerContext)Performs ATN simulation to compute a predicted alternative based upon the remaining input, but also updates the DFA cache to avoid having to traverse the ATN again for the same input sequence.protected intParserATNSimulator. execATNWithFullContext(DFA dfa, DFAState D, ATNConfigSet s0, TokenStream input, int startIndex, ParserRuleContext outerContext)protected intParserATNSimulator. getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(ATNConfigSet configs, ParserRuleContext outerContext)This method is used to improve the localization of error messages by choosing an alternative rather than throwing aNoViableAltExceptionin particular prediction scenarios where theATNSimulator.ERRORstate was reached during ATN simulation.protected NoViableAltExceptionParserATNSimulator. noViableAlt(TokenStream input, ParserRuleContext outerContext, ATNConfigSet configs, int startIndex)protected Pair<ATNConfigSet,ATNConfigSet>ParserATNSimulator. splitAccordingToSemanticValidity(ATNConfigSet configs, ParserRuleContext outerContext)Walk the list of configurations and split them according to those that have preds evaluating to true/false.
- 
Uses of ParserRuleContext in org.antlr.v4.runtime.treeMethods in org.antlr.v4.runtime.tree that return ParserRuleContext Modifier and Type Method Description static ParserRuleContextTrees. getRootOfSubtreeEnclosingRegion(ParseTree t, int startTokenIndex, int stopTokenIndex)Find smallest subtree of t enclosing range startTokenIndex..stopTokenIndex inclusively using postorder traversal.Methods in org.antlr.v4.runtime.tree with parameters of type ParserRuleContext Modifier and Type Method Description voidParseTreeListener. enterEveryRule(ParserRuleContext ctx)voidParseTreeListener. exitEveryRule(ParserRuleContext ctx)static voidTrees. stripChildrenOutOfRange(ParserRuleContext t, ParserRuleContext root, int startIndex, int stopIndex)Replace any subtree siblings of root that are completely to left or right of lookahead range with a CommonToken(Token.INVALID_TYPE,"...") node.
 
-