1 /* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
2 * Use of this file is governed by the BSD 3-clause license that
3 * can be found in the LICENSE.txt file in the project root.
8 #include "atn/ATNConfig.h"
13 class ANTLR4CPP_PUBLIC LexerATNConfig : public ATNConfig {
15 LexerATNConfig(ATNState *state, int alt, Ref<PredictionContext> const& context);
16 LexerATNConfig(ATNState *state, int alt, Ref<PredictionContext> const& context, Ref<LexerActionExecutor> const& lexerActionExecutor);
18 LexerATNConfig(Ref<LexerATNConfig> const& c, ATNState *state);
19 LexerATNConfig(Ref<LexerATNConfig> const& c, ATNState *state, Ref<LexerActionExecutor> const& lexerActionExecutor);
20 LexerATNConfig(Ref<LexerATNConfig> const& c, ATNState *state, Ref<PredictionContext> const& context);
23 * Gets the {@link LexerActionExecutor} capable of executing the embedded
24 * action(s) for the current configuration.
26 Ref<LexerActionExecutor> getLexerActionExecutor() const;
27 bool hasPassedThroughNonGreedyDecision();
29 virtual size_t hashCode() const override;
31 bool operator == (const LexerATNConfig& other) const;
35 * This is the backing field for {@link #getLexerActionExecutor}.
37 const Ref<LexerActionExecutor> _lexerActionExecutor;
38 const bool _passedThroughNonGreedyDecision;
40 static bool checkNonGreedyDecision(Ref<LexerATNConfig> const& source, ATNState *target);