Class: Antlr4ruby::LexerIndexedCustomAction

Inherits:
Object
  • Object
show all
Defined in:
lib/antlr4ruby/atn/action/lexer_indexed_custom_action.rb

Instance Method Summary collapse

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

Returns:

  • (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_actionObject



14
15
16
# File 'lib/antlr4ruby/atn/action/lexer_indexed_custom_action.rb', line 14

def get_action
  @action
end

#get_action_typeObject



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_offsetObject



10
11
12
# File 'lib/antlr4ruby/atn/action/lexer_indexed_custom_action.rb', line 10

def get_offset
  @offset
end

#hashObject



30
31
32
# File 'lib/antlr4ruby/atn/action/lexer_indexed_custom_action.rb', line 30

def hash
  # todo

end

#is_position_dependentObject



22
23
24
# File 'lib/antlr4ruby/atn/action/lexer_indexed_custom_action.rb', line 22

def is_position_dependent
  true
end