Class: Antlr4::Runtime::LexerPopModeAction
- Inherits:
-
LexerAction
- Object
- LexerAction
- Antlr4::Runtime::LexerPopModeAction
- Includes:
- Singleton
- Defined in:
- lib/antlr4/runtime/lexer_pop_mode_action.rb
Instance Method Summary collapse
- #action_type ⇒ Object
- #equals(other) ⇒ Object
- #execute(lexer) ⇒ Object
- #hash ⇒ Object
- #position_dependent? ⇒ Boolean
- #to_s ⇒ Object
Instance Method Details
#action_type ⇒ Object
6 7 8 |
# File 'lib/antlr4/runtime/lexer_pop_mode_action.rb', line 6 def action_type LexerActionType::POP_MODE end |
#equals(other) ⇒ Object
33 34 35 |
# File 'lib/antlr4/runtime/lexer_pop_mode_action.rb', line 33 def equals(other) other == self end |
#execute(lexer) ⇒ Object
14 15 16 |
# File 'lib/antlr4/runtime/lexer_pop_mode_action.rb', line 14 def execute(lexer) lexer.pop_mode end |
#hash ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/antlr4/runtime/lexer_pop_mode_action.rb', line 18 def hash return @_hash unless @_hash.nil? hash_code = RumourHash.calculate([action_type]) unless @_hash.nil? if hash_code == @_hash puts 'Same hash_code for LexerPopModeAction' else puts 'Different hash_code for LexerPopModeAction' end end @_hash = hash_code end |
#position_dependent? ⇒ Boolean
10 11 12 |
# File 'lib/antlr4/runtime/lexer_pop_mode_action.rb', line 10 def position_dependent? false end |
#to_s ⇒ Object
37 38 39 |
# File 'lib/antlr4/runtime/lexer_pop_mode_action.rb', line 37 def to_s 'popMode' end |