Class: Antlr4ruby::LexerPushModeAction
- Inherits:
-
Object
- Object
- Antlr4ruby::LexerPushModeAction
- Defined in:
- lib/antlr4ruby/atn/action/lexer_push_mode_action.rb
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean
- #execute(lexer) ⇒ Object
- #get_action_type ⇒ Object
- #get_mode ⇒ Object
- #hash ⇒ Object
-
#initialize(mode) ⇒ LexerPushModeAction
constructor
A new instance of LexerPushModeAction.
- #is_position_dependent ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(mode) ⇒ LexerPushModeAction
Returns a new instance of LexerPushModeAction.
5 6 7 |
# File 'lib/antlr4ruby/atn/action/lexer_push_mode_action.rb', line 5 def initialize(mode) @mode = mode end |
Instance Method Details
#eql?(other) ⇒ Boolean
30 31 32 |
# File 'lib/antlr4ruby/atn/action/lexer_push_mode_action.rb', line 30 def eql?(other) # todo end |
#execute(lexer) ⇒ Object
22 23 24 |
# File 'lib/antlr4ruby/atn/action/lexer_push_mode_action.rb', line 22 def execute(lexer) lexer.push_mode(mode) end |
#get_action_type ⇒ Object
14 15 16 |
# File 'lib/antlr4ruby/atn/action/lexer_push_mode_action.rb', line 14 def get_action_type :PUSH_MODE end |
#get_mode ⇒ Object
9 10 11 |
# File 'lib/antlr4ruby/atn/action/lexer_push_mode_action.rb', line 9 def get_mode @mode end |
#hash ⇒ Object
26 27 28 |
# File 'lib/antlr4ruby/atn/action/lexer_push_mode_action.rb', line 26 def hash # todo end |
#is_position_dependent ⇒ Object
18 19 20 |
# File 'lib/antlr4ruby/atn/action/lexer_push_mode_action.rb', line 18 def is_position_dependent false end |
#to_s ⇒ Object
34 35 36 |
# File 'lib/antlr4ruby/atn/action/lexer_push_mode_action.rb', line 34 def to_s "push_mode(#{mode})" end |