Class: RuleTransition
- Inherits:
-
Transition
- Object
- Transition
- RuleTransition
- Defined in:
- lib/antlr4/atn/Transition.rb
Constant Summary
Constants inherited from Transition
Transition::ACTION, Transition::ATOM, Transition::EPSILON, Transition::NOT_SET, Transition::PRECEDENCE, Transition::PREDICATE, Transition::RANGE, Transition::RULE, Transition::SET, Transition::WILDCARD
Instance Attribute Summary collapse
-
#followState ⇒ Object
Returns the value of attribute followState.
-
#precedence ⇒ Object
Returns the value of attribute precedence.
-
#ruleIndex ⇒ Object
Returns the value of attribute ruleIndex.
Attributes inherited from Transition
#isEpsilon, #serializationType, #target
Instance Method Summary collapse
-
#initialize(rule_start, rule_index, _precedence, follow_state) ⇒ RuleTransition
constructor
A new instance of RuleTransition.
- #matches(symbol, minVocabSymbol, maxVocabSymbol) ⇒ Object
Methods inherited from Transition
#label, serializationNames, serializationTypes, serializationTypes=
Constructor Details
#initialize(rule_start, rule_index, _precedence, follow_state) ⇒ RuleTransition
Returns a new instance of RuleTransition.
93 94 95 96 97 98 99 100 |
# File 'lib/antlr4/atn/Transition.rb', line 93 def initialize(rule_start, rule_index, _precedence, follow_state) super(rule_start) self.ruleIndex = rule_index # ptr to the rule definition object for this rule ref self.precedence = _precedence self.followState = follow_state # what node to begin computations following ref to rule @serializationType = Transition::RULE @isEpsilon = true end |
Instance Attribute Details
#followState ⇒ Object
Returns the value of attribute followState.
92 93 94 |
# File 'lib/antlr4/atn/Transition.rb', line 92 def followState @followState end |
#precedence ⇒ Object
Returns the value of attribute precedence.
92 93 94 |
# File 'lib/antlr4/atn/Transition.rb', line 92 def precedence @precedence end |
#ruleIndex ⇒ Object
Returns the value of attribute ruleIndex.
92 93 94 |
# File 'lib/antlr4/atn/Transition.rb', line 92 def ruleIndex @ruleIndex end |
Instance Method Details
#matches(symbol, minVocabSymbol, maxVocabSymbol) ⇒ Object
102 103 104 |
# File 'lib/antlr4/atn/Transition.rb', line 102 def matches( symbol, minVocabSymbol, maxVocabSymbol) return false end |