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 RuleContextModifier and TypeFieldDescriptionprivate final RuleContextRecognitionException.ctxRuleContext.parentWhat context invoked this rule?Methods in org.antlr.v4.runtime that return RuleContextModifier and TypeMethodDescriptionstatic RuleContextRuleContext.getChildContext(RuleContext parent, int invokingState) RecognitionException.getContext()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) voidParserRuleContext.addChild(RuleContext ruleInvocation) static RuleContextRuleContext.getChildContext(RuleContext parent, int invokingState) 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 TypeMethodDescription<T> booleanSemanticContext.AND.eval(Recognizer<T, ?> parser, RuleContext parserCallStack) For context independent predicates, we evaluate them without a local context (i.e., null context).abstract <T> booleanSemanticContext.eval(Recognizer<T, ?> parser, RuleContext parserCallStack) For context independent predicates, we evaluate them without a local context (i.e., null context).<T> booleanSemanticContext.OR.eval(Recognizer<T, ?> parser, RuleContext parserCallStack) For context independent predicates, we evaluate them without a local context (i.e., null context).<T> booleanSemanticContext.PrecedencePredicate.eval(Recognizer<T, ?> parser, RuleContext parserCallStack) <T> booleanSemanticContext.Predicate.eval(Recognizer<T, ?> 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) static PredictionContextPredictionContext.fromRuleContext(ATN atn, RuleContext outerContext, boolean fullContext) ATN.getExpectedTokens(int stateNumber, RuleContext context) Computes the set of input symbols which could follow ATN state numberstateNumberin the specified fullcontext.protected final intParserATNSimulator.getReturnState(RuleContext context) -
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 RuleContext -
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) private voidXPathLexer.ID_action(RuleContext _localctx, int actionIndex) private booleanXPathLexer.NameChar_sempred(RuleContext _localctx, int predIndex) private booleanXPathLexer.NameStartChar_sempred(RuleContext _localctx, int predIndex) booleanXPathLexer.sempred(RuleContext _localctx, int ruleIndex, int predIndex) -
Uses of RuleContext in org.antlr.v4.test.runtime.java.api
Subclasses of RuleContext in org.antlr.v4.test.runtime.java.apiModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classMethods in org.antlr.v4.test.runtime.java.api with parameters of type RuleContextModifier and TypeMethodDescriptionprivate booleanJavaLexer.JavaLetter_sempred(RuleContext _localctx, int predIndex) private booleanJavaLexer.JavaLetterOrDigit_sempred(RuleContext _localctx, int predIndex) booleanGroovyLikeParser.sempred(RuleContext _localctx, int ruleIndex, int predIndex) booleanJavaLexer.sempred(RuleContext _localctx, int ruleIndex, int predIndex) booleanJavaParser.sempred(RuleContext _localctx, int ruleIndex, int predIndex) -
Uses of RuleContext in org.antlr.v4.test.runtime.java.api.perf
Subclasses of RuleContext in org.antlr.v4.test.runtime.java.api.perfModifier and TypeClassDescriptionstatic classstatic classstatic class -
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.