Class: Antlr4ruby::LexerATNConfig
- Defined in:
- lib/antlr4ruby/atn/config/lexer_atn_config.rb
Constant Summary
Constants inherited from ATNConfig
ATNConfig::SUPPRESS_PRECEDENCE_FILTER
Instance Attribute Summary
Attributes inherited from ATNConfig
#alt, #context, #reaches_into_outer_context, #semantic_context, #state
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean
- #get_lexer_action_executor ⇒ Object
- #has_passed_through_non_greedy_decision? ⇒ Boolean
- #hash ⇒ Object
-
#initialize(state:, alt: nil, context: nil, config: nil, executor: nil) ⇒ LexerATNConfig
constructor
A new instance of LexerATNConfig.
Methods inherited from ATNConfig
#get_outer_context_depth, #is_precedence_filter_suppressed, #set_precedence_filter_suppressed, #to_s
Constructor Details
#initialize(state:, alt: nil, context: nil, config: nil, executor: nil) ⇒ LexerATNConfig
Returns a new instance of LexerATNConfig.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/antlr4ruby/atn/config/lexer_atn_config.rb', line 3 def initialize(state: , alt: nil, context: nil, config: nil, executor: nil ) if alt && context # 第一个构造函数 elsif config && executor # 第三个构造函数 elsif config && context # 第四个构造函数 else # 第二个构造函数 end end |
Instance Method Details
#eql?(other) ⇒ Boolean
39 40 41 |
# File 'lib/antlr4ruby/atn/config/lexer_atn_config.rb', line 39 def eql?(other) # todo end |
#get_lexer_action_executor ⇒ Object
27 28 29 |
# File 'lib/antlr4ruby/atn/config/lexer_atn_config.rb', line 27 def get_lexer_action_executor @lexer_action_executor end |
#has_passed_through_non_greedy_decision? ⇒ Boolean
31 32 33 |
# File 'lib/antlr4ruby/atn/config/lexer_atn_config.rb', line 31 def has_passed_through_non_greedy_decision? @passed_through_non_greedy_decision end |
#hash ⇒ Object
35 36 37 |
# File 'lib/antlr4ruby/atn/config/lexer_atn_config.rb', line 35 def hash # todo end |