Class: Antlr4ruby::DecisionState Abstract
- Defined in:
- lib/antlr4ruby/atn/state/decision_state.rb
Overview
Direct Known Subclasses
BlockStartState, PlusLoopbackState, StarLoopEntryState, TokensStartState
Constant Summary
Constants inherited from ATNState
ATNState::BASIC, ATNState::BLOCK_END, ATNState::BLOCK_START, ATNState::INITIAL_NUM_TRANSITIONS, 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
-
#decision ⇒ Object
Returns the value of attribute decision.
-
#non_greedy ⇒ Object
Returns the value of attribute non_greedy.
Attributes inherited from ATNState
#atn, #epsilon_only_transitions, #next_token_within_rule, #rule_index, #state_number
Instance Method Summary collapse
-
#initialize ⇒ DecisionState
constructor
A new instance of DecisionState.
Methods inherited from ATNState
#add_transition, #eql?, #get_number_of_transitions, #get_state_type, #get_transition, #hash, #only_has_epsilon_transitions?, #remove_transition, #set_rule_index, #set_transition, #to_s
Constructor Details
#initialize ⇒ DecisionState
10 11 12 13 14 |
# File 'lib/antlr4ruby/atn/state/decision_state.rb', line 10 def initialize super @decision = -1 @non_greedy = false end |
Instance Attribute Details
#decision ⇒ Object
Returns the value of attribute decision.
8 9 10 |
# File 'lib/antlr4ruby/atn/state/decision_state.rb', line 8 def decision @decision end |
#non_greedy ⇒ Object
Returns the value of attribute non_greedy.
8 9 10 |
# File 'lib/antlr4ruby/atn/state/decision_state.rb', line 8 def non_greedy @non_greedy end |