Class: Antlr4::Runtime::DFAState::PredPrediction
- Inherits:
-
Object
- Object
- Antlr4::Runtime::DFAState::PredPrediction
- Defined in:
- lib/antlr4/runtime/dfa_state.rb
Instance Attribute Summary collapse
-
#alt ⇒ Object
Returns the value of attribute alt.
-
#pred ⇒ Object
never null at least SemanticContext::NONE.
Instance Method Summary collapse
Instance Attribute Details
#alt ⇒ Object
Returns the value of attribute alt.
36 37 38 |
# File 'lib/antlr4/runtime/dfa_state.rb', line 36 def alt @alt end |
#pred ⇒ Object
never null at least SemanticContext::NONE
35 36 37 |
# File 'lib/antlr4/runtime/dfa_state.rb', line 35 def pred @pred end |
Instance Method Details
#initiailize(pred, alt) ⇒ Object
38 39 40 41 |
# File 'lib/antlr4/runtime/dfa_state.rb', line 38 def initiailize(pred, alt) @alt = alt @pred = pred end |
#to_s ⇒ Object
43 44 45 |
# File 'lib/antlr4/runtime/dfa_state.rb', line 43 def to_s '(' + @pred.to_s + ', ' + @alt.to_s + ')' end |