Class: Antlr4ruby::LexerChannelAction
- Inherits:
-
Object
- Object
- Antlr4ruby::LexerChannelAction
- Defined in:
- lib/antlr4ruby/atn/action/lexer_channel_action.rb
Instance Method Summary collapse
-
#eql?(other) ⇒ Boolean
todo.
- #execute(lexer) ⇒ Object
- #get_action_type ⇒ Object
- #get_channel ⇒ Object
- #hash ⇒ Object
-
#initialize(channel) ⇒ LexerChannelAction
constructor
A new instance of LexerChannelAction.
- #is_position_dependent ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(channel) ⇒ LexerChannelAction
Returns a new instance of LexerChannelAction.
6 7 8 |
# File 'lib/antlr4ruby/atn/action/lexer_channel_action.rb', line 6 def initialize(channel) @channel = channel end |
Instance Method Details
#eql?(other) ⇒ Boolean
todo
29 30 31 |
# File 'lib/antlr4ruby/atn/action/lexer_channel_action.rb', line 29 def eql?(other) # todo end |
#execute(lexer) ⇒ Object
22 23 24 |
# File 'lib/antlr4ruby/atn/action/lexer_channel_action.rb', line 22 def execute(lexer) lexer.set_channel(channel) end |
#get_action_type ⇒ Object
14 15 16 |
# File 'lib/antlr4ruby/atn/action/lexer_channel_action.rb', line 14 def get_action_type :CHANNEL end |
#get_channel ⇒ Object
10 11 12 |
# File 'lib/antlr4ruby/atn/action/lexer_channel_action.rb', line 10 def get_channel @channel end |
#hash ⇒ Object
26 27 28 |
# File 'lib/antlr4ruby/atn/action/lexer_channel_action.rb', line 26 def hash # todo end |
#is_position_dependent ⇒ Object
18 19 20 |
# File 'lib/antlr4ruby/atn/action/lexer_channel_action.rb', line 18 def is_position_dependent false end |
#to_s ⇒ Object
33 34 35 |
# File 'lib/antlr4ruby/atn/action/lexer_channel_action.rb', line 33 def to_s "channel(#{channel})" end |