Class: DecisionState
Direct Known Subclasses
BlockStartState, PlusLoopbackState, StarLoopEntryState, TokensStartState
Constant Summary
Constants inherited from ATNState
ATNState::BASIC, ATNState::BLOCK_END, ATNState::BLOCK_START, ATNState::INVALID_STATE_NUMBER, ATNState::INVALID_TYPE, ATNState::LOOP_END, ATNState::PLUS_BLOCK_START, ATNState::PLUS_LOOP_BACK, ATNState::RULE_START, ATNState::RULE_STOP, ATNState::STAR_BLOCK_START, ATNState::STAR_LOOP_BACK, ATNState::STAR_LOOP_ENTRY, ATNState::TOKEN_START
Instance Attribute Summary collapse
-
#decision ⇒ Object
Returns the value of attribute decision.
-
#nonGreedy ⇒ Object
Returns the value of attribute nonGreedy.
Attributes inherited from ATNState
#atn, #epsilonOnlyTransitions, #nextTokenWithinRule, #ruleIndex, #serializationNames, #stateNumber, #stateType, #transitions
Instance Method Summary collapse
-
#initialize ⇒ DecisionState
constructor
A new instance of DecisionState.
Methods inherited from ATNState
#==, #addTransition, #hash, #inspect, #isNonGreedyExitState, #onlyHasEpsilonTransitions, #to_s
Constructor Details
#initialize ⇒ DecisionState
Returns a new instance of DecisionState.
105 106 107 108 109 110 |
# File 'lib/antlr4/atn/ATNState.rb', line 105 def initialize super() self.decision = -1 self.nonGreedy = false end |
Instance Attribute Details
#decision ⇒ Object
Returns the value of attribute decision.
104 105 106 |
# File 'lib/antlr4/atn/ATNState.rb', line 104 def decision @decision end |
#nonGreedy ⇒ Object
Returns the value of attribute nonGreedy.
104 105 106 |
# File 'lib/antlr4/atn/ATNState.rb', line 104 def nonGreedy @nonGreedy end |