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 class
A semantic context which is true whenever none of the contained contexts is false.static class
This is the base class for semantic context "operators", which operate on a collection of semantic context "operands".static class
A semantic context which is true whenever at least one of the contained contexts is true.static class
static class
Fields in org.antlr.v4.runtime.atn declared as SemanticContextModifier and TypeFieldDescriptionstatic final SemanticContext
SemanticContext.NONE
The defaultSemanticContext
, which is semantically equivalent to a predicate of the form{true}?
.final SemanticContext[]
SemanticContext.AND.opnds
final SemanticContext[]
SemanticContext.OR.opnds
final SemanticContext
ATNConfig.semanticContext
final SemanticContext
PredicateEvalInfo.semctx
The semantic context which was evaluated.Methods in org.antlr.v4.runtime.atn that return SemanticContextModifier and TypeMethodDescriptionstatic SemanticContext
SemanticContext.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) static SemanticContext
SemanticContext.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()
ATNConfigSet.getPredicates()
Methods in org.antlr.v4.runtime.atn with parameters of type SemanticContextModifier and TypeMethodDescriptionstatic SemanticContext
SemanticContext.and
(SemanticContext a, SemanticContext b) protected boolean
ParserATNSimulator.evalSemanticContext
(SemanticContext pred, ParserRuleContext parserCallStack, int alt, boolean fullCtx) Evaluate a semantic context within a specific parser context.protected boolean
ProfilingATNSimulator.evalSemanticContext
(SemanticContext pred, ParserRuleContext parserCallStack, int alt, boolean fullCtx) protected DFAState.PredPrediction[]
ParserATNSimulator.getPredicatePredictions
(BitSet ambigAlts, SemanticContext[] altToPred) static SemanticContext
SemanticContext.or
(SemanticContext a, SemanticContext b) Constructors in org.antlr.v4.runtime.atn with parameters of type SemanticContextModifierConstructorDescriptionATNConfig
(ATNConfig c, ATNState state, PredictionContext context, SemanticContext semanticContext) ATNConfig
(ATNConfig c, ATNState state, SemanticContext semanticContext) ATNConfig
(ATNConfig c, SemanticContext semanticContext) ATNConfig
(ATNState state, int alt, PredictionContext context, SemanticContext semanticContext) OR
(SemanticContext a, SemanticContext b) PredicateEvalInfo
(int decision, TokenStream input, int startIndex, int stopIndex, SemanticContext semctx, boolean evalResult, int predictedAlt, boolean fullCtx) Constructs a new instance of thePredicateEvalInfo
class with the specified detailed predicate evaluation information. -
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.