Class: BlockStartState

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

Overview

The start of a regular (…) block.

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 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

#initializeBlockStartState

Returns a new instance of BlockStartState.



129
130
131
132
# File 'lib/antlr4/atn/ATNState.rb', line 129

def initialize 
    super()
    self.endState = nil
end

Instance Attribute Details

#endStateObject

Returns the value of attribute endState.



128
129
130
# File 'lib/antlr4/atn/ATNState.rb', line 128

def endState
  @endState
end