Class: RuleStartState

Inherits:
ATNState show all
Defined in:
lib/antlr4/atn/ATNState.rb

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

Attributes inherited from ATNState

#atn, #epsilonOnlyTransitions, #nextTokenWithinRule, #ruleIndex, #serializationNames, #stateNumber, #stateType, #transitions

Instance Method Summary collapse

Methods inherited from ATNState

#==, #addTransition, #hash, #inspect, #isNonGreedyExitState, #onlyHasEpsilonTransitions, #to_s

Constructor Details

#initializeRuleStartState

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

#isPrecedenceRuleObject

Returns the value of attribute isPrecedenceRule.



170
171
172
# File 'lib/antlr4/atn/ATNState.rb', line 170

def isPrecedenceRule
  @isPrecedenceRule
end

#stopStateObject

Returns the value of attribute stopState.



170
171
172
# File 'lib/antlr4/atn/ATNState.rb', line 170

def stopState
  @stopState
end