Class: PlusBlockStartState

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

Overview

Start of (A|B|…)+ loop. Technically a decision state, but

we don't use for code generation; somebody might need it, so I'm defining
it for completeness. In reality, the {@link PlusLoopbackState} node is the
real decision-making note for {@code A+}.

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 BlockStartState

#endState

Attributes inherited from DecisionState

#decision, #nonGreedy

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

#initializePlusBlockStartState

Returns a new instance of PlusBlockStartState.



198
199
200
201
202
# File 'lib/antlr4/atn/ATNState.rb', line 198

def initialize 
    super()
    self.stateType = ATNState::PLUS_BLOCK_START
    self.loopBackState = nil
end

Instance Attribute Details

#loopBackStateObject

Returns the value of attribute loopBackState.



197
198
199
# File 'lib/antlr4/atn/ATNState.rb', line 197

def loopBackState
  @loopBackState
end