Method: ATNState#initialize

Defined in:
lib/antlr4/atn/ATNState.rb

#initializeATNState

Returns a new instance of ATNState.



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/antlr4/atn/ATNState.rb', line 28

def initialize()
    # Which ATN are we in?
    @atn = nil
    @stateNumber = ATNState::INVALID_STATE_NUMBER
    @stateType = nil
    @ruleIndex = 0 # at runtime, we don't have Rule objects
    @epsilonOnlyTransitions = false
    # Track the transitions emanating from this ATN state.
    @transitions = Array.new
    # Used to cache lookahead during parsing, not used during construction
    @nextTokenWithinRule = nil
    @serializationNames = [
        "INVALID",
        "BASIC",
        "RULE_START",
        "BLOCK_START",
        "PLUS_BLOCK_START",
        "STAR_BLOCK_START",
        "TOKEN_START",
        "RULE_STOP",
        "BLOCK_END",
        "STAR_LOOP_BACK",
        "STAR_LOOP_ENTRY",
        "PLUS_LOOP_BACK",
        "LOOP_END" ]
end