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 TypeClassDescriptionclassThis class extendsParserRuleContextby allowing the value ofInterpreterRuleContext.getRuleIndex()to be explicitly set for the context.classA rule invocation record for parsing.classA 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 theRuleContextat the time this exception was thrown.RuleContext.getParent()RuleContext.getPayload()RuleContext.getRuleContext()Methods in org.antlr.v4.runtime with parameters of type RuleContextModifier and TypeMethodDescriptionvoidRecognizer.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) booleanParser.precpred(RuleContext localctx, int precedence) booleanRecognizer.precpred(RuleContext localctx, int precedence) booleanRecognizer.sempred(RuleContext _localctx, int ruleIndex, int actionIndex) voidRuleContext.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 ATNConfigSetParserATNSimulator.computeStartState(ATNState p, RuleContext ctx, boolean fullCtx) booleanSemanticContext.AND.eval(Recognizer<?, ?> parser, RuleContext parserCallStack) For context independent predicates, we evaluate them without a local context (i.e., null context).abstract booleanSemanticContext.eval(Recognizer<?, ?> parser, RuleContext parserCallStack) For context independent predicates, we evaluate them without a local context (i.e., null context).booleanSemanticContext.OR.eval(Recognizer<?, ?> parser, RuleContext parserCallStack) For context independent predicates, we evaluate them without a local context (i.e., null context).booleanSemanticContext.PrecedencePredicate.eval(Recognizer<?, ?> parser, RuleContext parserCallStack) booleanSemanticContext.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 PredictionContextPredictionContext.fromRuleContext(ATN atn, RuleContext outerContext) Convert aRuleContexttree to aPredictionContextgraph.ATN.getExpectedTokens(int stateNumber, RuleContext context) Computes the set of input symbols which could follow ATN state numberstateNumberin the specified fullcontext.LL1Analyzer.LOOK(ATNState s, ATNState stopState, RuleContext ctx) Compute set of tokens that can followsin the ATN in the specifiedctx.LL1Analyzer.LOOK(ATNState s, RuleContext ctx) Compute set of tokens that can followsin 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 TypeMethodDescriptionvoidParseTree.setParent(RuleContext parent) Set the parent for this node.voidTerminalNodeImpl.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 TypeMethodDescriptionvoidXPathLexer.action(RuleContext _localctx, int ruleIndex, int actionIndex) -
Uses of RuleContext in org.antlr.v4.tool
Subclasses of RuleContext in org.antlr.v4.toolModifier and TypeClassDescriptionclassAnInterpreterRuleContextthat knows which alternative for a rule was matched.