Class: Antlr4ruby::LexerIndexedCustomAction
- Inherits:
-
Object
- Object
- Antlr4ruby::LexerIndexedCustomAction
- Defined in:
- lib/antlr4ruby/atn/action/lexer_indexed_custom_action.rb
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean
- #execute(lexer) ⇒ Object
- #get_action ⇒ Object
- #get_action_type ⇒ Object
- #get_offset ⇒ Object
- #hash ⇒ Object
-
#initialize(offset, action) ⇒ LexerIndexedCustomAction
constructor
A new instance of LexerIndexedCustomAction.
- #is_position_dependent ⇒ Object
Constructor Details
#initialize(offset, action) ⇒ LexerIndexedCustomAction
Returns a new instance of LexerIndexedCustomAction.
6 7 8 |
# File 'lib/antlr4ruby/atn/action/lexer_indexed_custom_action.rb', line 6 def initialize(offset, action) @offset, @action = offset, action end |
Instance Method Details
#eql?(other) ⇒ Boolean
34 35 36 |
# File 'lib/antlr4ruby/atn/action/lexer_indexed_custom_action.rb', line 34 def eql?(other) # todo end |
#execute(lexer) ⇒ Object
26 27 28 |
# File 'lib/antlr4ruby/atn/action/lexer_indexed_custom_action.rb', line 26 def execute(lexer) action.execute(lexer) end |
#get_action ⇒ Object
14 15 16 |
# File 'lib/antlr4ruby/atn/action/lexer_indexed_custom_action.rb', line 14 def get_action @action end |
#get_action_type ⇒ Object
18 19 20 |
# File 'lib/antlr4ruby/atn/action/lexer_indexed_custom_action.rb', line 18 def get_action_type action.get_action_type end |
#get_offset ⇒ Object
10 11 12 |
# File 'lib/antlr4ruby/atn/action/lexer_indexed_custom_action.rb', line 10 def get_offset @offset end |
#hash ⇒ Object
30 31 32 |
# File 'lib/antlr4ruby/atn/action/lexer_indexed_custom_action.rb', line 30 def hash # todo end |
#is_position_dependent ⇒ Object
22 23 24 |
# File 'lib/antlr4ruby/atn/action/lexer_indexed_custom_action.rb', line 22 def is_position_dependent true end |