Class: LexerAction
Direct Known Subclasses
LexerChannelAction, LexerCustomAction, LexerIndexedCustomAction, LexerModeAction, LexerMoreAction, LexerPopModeAction, LexerPushModeAction, LexerSkipAction, LexerTypeAction
Instance Attribute Summary collapse
-
#actionType ⇒ Object
Returns the value of attribute actionType.
-
#isPositionDependent ⇒ Object
Returns the value of attribute isPositionDependent.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(action) ⇒ LexerAction
constructor
A new instance of LexerAction.
Constructor Details
#initialize(action) ⇒ LexerAction
Returns a new instance of LexerAction.
17 18 19 20 |
# File 'lib/antlr4/atn/LexerAction.rb', line 17 def initialize(action) self.actionType = action self.isPositionDependent = false end |
Instance Attribute Details
#actionType ⇒ Object
Returns the value of attribute actionType.
16 17 18 |
# File 'lib/antlr4/atn/LexerAction.rb', line 16 def actionType @actionType end |
#isPositionDependent ⇒ Object
Returns the value of attribute isPositionDependent.
16 17 18 |
# File 'lib/antlr4/atn/LexerAction.rb', line 16 def isPositionDependent @isPositionDependent end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 |
# File 'lib/antlr4/atn/LexerAction.rb', line 30 def ==(other) self.equal? other end |
#eql?(other) ⇒ Boolean
26 27 28 |
# File 'lib/antlr4/atn/LexerAction.rb', line 26 def eql?(other) self == other end |
#hash ⇒ Object
22 23 24 |
# File 'lib/antlr4/atn/LexerAction.rb', line 22 def hash self.actionType.to_s.hash end |