Uses of Class
org.antlr.v4.runtime.atn.SemanticContext
Packages that use SemanticContext
-
Uses of SemanticContext in org.antlr.v4.runtime.atn
Subclasses of SemanticContext in org.antlr.v4.runtime.atnModifier and TypeClassDescriptionstatic classA semantic context which is true whenever none of the contained contexts is false.static classThis is the base class for semantic context "operators", which operate on a collection of semantic context "operands".static classA semantic context which is true whenever at least one of the contained contexts is true.static classstatic classFields in org.antlr.v4.runtime.atn declared as SemanticContextModifier and TypeFieldDescriptionstatic final SemanticContextSemanticContext.NONEThe defaultSemanticContext, which is semantically equivalent to a predicate of the form{true}?.final SemanticContext[]SemanticContext.AND.opndsfinal SemanticContext[]SemanticContext.OR.opndsprivate final SemanticContextATNConfig.SemanticContextATNConfig.semanticContextfinal SemanticContextPredicateEvalInfo.semctxThe semantic context which was evaluated.Methods in org.antlr.v4.runtime.atn that return SemanticContextModifier and TypeMethodDescriptionstatic SemanticContextSemanticContext.and(SemanticContext a, SemanticContext b) 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) protected SemanticContext[]ParserATNSimulator.getPredsForAmbigAlts(BitSet ambigAlts, ATNConfigSet configs, int nalts) ATNConfig.getSemanticContext()ATNConfig.SemanticContextATNConfig.getSemanticContext()static SemanticContextSemanticContext.or(SemanticContext a, SemanticContext b) Methods in org.antlr.v4.runtime.atn that return types with arguments of type SemanticContextModifier and TypeMethodDescriptionSemanticContext.AND.getOperands()abstract Collection<SemanticContext>SemanticContext.Operator.getOperands()Gets the operands for the semantic context operator.SemanticContext.OR.getOperands()Methods in org.antlr.v4.runtime.atn with parameters of type SemanticContextModifier and TypeMethodDescriptionstatic SemanticContextSemanticContext.and(SemanticContext a, SemanticContext b) static ATNConfigATNConfig.create(ATNState state, int alt, PredictionContext context, SemanticContext semanticContext) static ATNConfigATNConfig.create(ATNState state, int alt, PredictionContext context, SemanticContext semanticContext, LexerActionExecutor lexerActionExecutor) protected booleanParserATNSimulator.evalSemanticContext(SemanticContext pred, ParserRuleContext parserCallStack, int alt) Evaluate a semantic context within a specific parser context.protected booleanProfilingATNSimulator.evalSemanticContext(SemanticContext pred, ParserRuleContext parserCallStack, int alt) private IntegerParserATNSimulator.findFirstValidAltUsingPredicates(TokenStream input, int startIndex, SimulatorState previous, BitSet alts, SemanticContext[] altToPred) protected DFAState.PredPrediction[]ParserATNSimulator.getPredicatePredictions(BitSet ambigAlts, SemanticContext[] altToPred) static SemanticContextSemanticContext.or(SemanticContext a, SemanticContext b) private ATNConfigATNConfig.transform(ATNState state, PredictionContext context, SemanticContext semanticContext, boolean checkNonGreedy, LexerActionExecutor lexerActionExecutor) final ATNConfigATNConfig.transform(ATNState state, SemanticContext semanticContext, boolean checkNonGreedy) Method parameters in org.antlr.v4.runtime.atn with type arguments of type SemanticContextModifier and TypeMethodDescriptionprivate static List<SemanticContext.PrecedencePredicate>SemanticContext.filterPrecedencePredicates(Collection<? extends SemanticContext> collection) Constructors in org.antlr.v4.runtime.atn with parameters of type SemanticContextModifierConstructorDescriptionActionSemanticContextATNConfig(LexerActionExecutor lexerActionExecutor, SemanticContext semanticContext, ATNConfig c, ATNState state, PredictionContext context, boolean passedThroughNonGreedyDecision) ActionSemanticContextATNConfig(LexerActionExecutor lexerActionExecutor, SemanticContext semanticContext, ATNState state, int alt, PredictionContext context, boolean passedThroughNonGreedyDecision) OR(SemanticContext a, SemanticContext b) PredicateEvalInfo(SimulatorState state, int decision, TokenStream input, int startIndex, int stopIndex, SemanticContext semctx, boolean evalResult, int predictedAlt) Constructs a new instance of thePredicateEvalInfoclass with the specified detailed predicate evaluation information.SemanticContextATNConfig(SemanticContext semanticContext, ATNConfig c, ATNState state, PredictionContext context) SemanticContextATNConfig(SemanticContext semanticContext, ATNState state, int alt, PredictionContext context) -
Uses of SemanticContext in org.antlr.v4.runtime.dfa
Fields in org.antlr.v4.runtime.dfa declared as SemanticContextConstructors in org.antlr.v4.runtime.dfa with parameters of type SemanticContext -
Uses of SemanticContext in org.antlr.v4.tool
Methods in org.antlr.v4.tool with parameters of type SemanticContextModifier and TypeMethodDescriptionGrammar.getSemanticContextDisplayString(SemanticContext semctx) Given an arbitrarily complex SemanticContext, walk the "tree" and get display string.