Package org.antlr.v4.runtime.atn
Class ATNConfig.ActionSemanticContextATNConfig
java.lang.Object
org.antlr.v4.runtime.atn.ATNConfig
org.antlr.v4.runtime.atn.ATNConfig.SemanticContextATNConfig
org.antlr.v4.runtime.atn.ATNConfig.ActionSemanticContextATNConfig
- Enclosing class:
- ATNConfig
private static class ATNConfig.ActionSemanticContextATNConfig
extends ATNConfig.SemanticContextATNConfig
This class was derived from
ATNConfig.SemanticContextATNConfig purely as a memory
optimization. It allows for the creation of an ATNConfig with
both a lexer action and a non-default semantic context.
See the ATNConfig documentation for more information about
conserving memory through the use of several concrete types.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionActionSemanticContextATNConfig(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) -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethods inherited from class org.antlr.v4.runtime.atn.ATNConfig.SemanticContextATNConfig
getSemanticContextMethods inherited from class org.antlr.v4.runtime.atn.ATNConfig
appendContext, appendContext, clone, contains, create, create, create, equals, equals, getAlt, getContext, getOuterContextDepth, getReachesIntoOuterContext, getState, hashCode, isPrecedenceFilterSuppressed, setContext, setOuterContextDepth, setPrecedenceFilterSuppressed, toDotString, toString, toString, toString, transform, transform, transform, transform
-
Field Details
-
lexerActionExecutor
-
passedThroughNonGreedyDecision
private final boolean passedThroughNonGreedyDecision
-
-
Constructor Details
-
ActionSemanticContextATNConfig
public ActionSemanticContextATNConfig(LexerActionExecutor lexerActionExecutor, @NotNull SemanticContext semanticContext, @NotNull ATNState state, int alt, @Nullable PredictionContext context, boolean passedThroughNonGreedyDecision) -
ActionSemanticContextATNConfig
public ActionSemanticContextATNConfig(LexerActionExecutor lexerActionExecutor, @NotNull SemanticContext semanticContext, @NotNull ATNConfig c, @NotNull ATNState state, @Nullable PredictionContext context, boolean passedThroughNonGreedyDecision)
-
-
Method Details
-
getLexerActionExecutor
- Overrides:
getLexerActionExecutorin classATNConfig
-
hasPassedThroughNonGreedyDecision
public boolean hasPassedThroughNonGreedyDecision()- Overrides:
hasPassedThroughNonGreedyDecisionin classATNConfig
-