Class: RuleStartState
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
-
#isPrecedenceRule ⇒ Object
Returns the value of attribute isPrecedenceRule.
-
#stopState ⇒ Object
Returns the value of attribute stopState.
Attributes inherited from ATNState
#atn, #epsilonOnlyTransitions, #nextTokenWithinRule, #ruleIndex, #serializationNames, #stateNumber, #stateType, #transitions
Instance Method Summary collapse
-
#initialize ⇒ RuleStartState
constructor
A new instance of RuleStartState.
Methods inherited from ATNState
#==, #addTransition, #hash, #inspect, #isNonGreedyExitState, #onlyHasEpsilonTransitions, #to_s
Constructor Details
#initialize ⇒ RuleStartState
Returns a new instance of RuleStartState.
171 172 173 174 175 176 |
# File 'lib/antlr4/atn/ATNState.rb', line 171 def initialize super() self.stateType = ATNState::RULE_START self.stopState = nil self.isPrecedenceRule = false end |
Instance Attribute Details
#isPrecedenceRule ⇒ Object
Returns the value of attribute isPrecedenceRule.
170 171 172 |
# File 'lib/antlr4/atn/ATNState.rb', line 170 def isPrecedenceRule @isPrecedenceRule end |
#stopState ⇒ Object
Returns the value of attribute stopState.
170 171 172 |
# File 'lib/antlr4/atn/ATNState.rb', line 170 def stopState @stopState end |