Class: Antlr4ruby::DecisionInfo
- Inherits:
-
Object
- Object
- Antlr4ruby::DecisionInfo
- Defined in:
- lib/antlr4ruby/atn/info/decision_info.rb
Instance Attribute Summary collapse
-
#ambiguities ⇒ Object
readonly
Returns the value of attribute ambiguities.
-
#context_sensitivities ⇒ Object
readonly
Returns the value of attribute context_sensitivities.
-
#decision ⇒ Object
readonly
Returns the value of attribute decision.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#invocations ⇒ Object
Returns the value of attribute invocations.
-
#ll_atn_transitions ⇒ Object
Returns the value of attribute ll_atn_transitions.
-
#ll_dfa_transitions ⇒ Object
Returns the value of attribute ll_dfa_transitions.
-
#ll_fallback ⇒ Object
Returns the value of attribute ll_fallback.
-
#ll_max_look ⇒ Object
Returns the value of attribute ll_max_look.
-
#ll_max_look_event ⇒ Object
Returns the value of attribute ll_max_look_event.
-
#ll_min_look ⇒ Object
Returns the value of attribute ll_min_look.
-
#ll_total_look ⇒ Object
Returns the value of attribute ll_total_look.
-
#predicate_evals ⇒ Object
readonly
Returns the value of attribute predicate_evals.
-
#sll_atn_transitions ⇒ Object
Returns the value of attribute sll_atn_transitions.
-
#sll_dfa_transitions ⇒ Object
Returns the value of attribute sll_dfa_transitions.
-
#sll_max_look ⇒ Object
Returns the value of attribute sll_max_look.
-
#sll_max_look_event ⇒ Object
Returns the value of attribute sll_max_look_event.
-
#sll_min_look ⇒ Object
Returns the value of attribute sll_min_look.
-
#sll_total_look ⇒ Object
Returns the value of attribute sll_total_look.
-
#time_in_prediction ⇒ Object
Returns the value of attribute time_in_prediction.
Instance Method Summary collapse
-
#initialize(decision) ⇒ DecisionInfo
constructor
A new instance of DecisionInfo.
- #to_s ⇒ Object
Constructor Details
#initialize(decision) ⇒ DecisionInfo
Returns a new instance of DecisionInfo.
14 15 16 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 14 def initialize(decision) @decision, @context_sensitivities, @errors, @ambiguities, @predicate_evals = decision, [], [], [], [] end |
Instance Attribute Details
#ambiguities ⇒ Object (readonly)
Returns the value of attribute ambiguities.
6 7 8 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 6 def ambiguities @ambiguities end |
#context_sensitivities ⇒ Object (readonly)
Returns the value of attribute context_sensitivities.
6 7 8 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 6 def context_sensitivities @context_sensitivities end |
#decision ⇒ Object (readonly)
Returns the value of attribute decision.
6 7 8 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 6 def decision @decision end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
6 7 8 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 6 def errors @errors end |
#invocations ⇒ Object
Returns the value of attribute invocations.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def invocations @invocations end |
#ll_atn_transitions ⇒ Object
Returns the value of attribute ll_atn_transitions.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def ll_atn_transitions @ll_atn_transitions end |
#ll_dfa_transitions ⇒ Object
Returns the value of attribute ll_dfa_transitions.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def ll_dfa_transitions @ll_dfa_transitions end |
#ll_fallback ⇒ Object
Returns the value of attribute ll_fallback.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def ll_fallback @ll_fallback end |
#ll_max_look ⇒ Object
Returns the value of attribute ll_max_look.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def ll_max_look @ll_max_look end |
#ll_max_look_event ⇒ Object
Returns the value of attribute ll_max_look_event.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def ll_max_look_event @ll_max_look_event end |
#ll_min_look ⇒ Object
Returns the value of attribute ll_min_look.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def ll_min_look @ll_min_look end |
#ll_total_look ⇒ Object
Returns the value of attribute ll_total_look.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def ll_total_look @ll_total_look end |
#predicate_evals ⇒ Object (readonly)
Returns the value of attribute predicate_evals.
6 7 8 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 6 def predicate_evals @predicate_evals end |
#sll_atn_transitions ⇒ Object
Returns the value of attribute sll_atn_transitions.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def sll_atn_transitions @sll_atn_transitions end |
#sll_dfa_transitions ⇒ Object
Returns the value of attribute sll_dfa_transitions.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def sll_dfa_transitions @sll_dfa_transitions end |
#sll_max_look ⇒ Object
Returns the value of attribute sll_max_look.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def sll_max_look @sll_max_look end |
#sll_max_look_event ⇒ Object
Returns the value of attribute sll_max_look_event.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def sll_max_look_event @sll_max_look_event end |
#sll_min_look ⇒ Object
Returns the value of attribute sll_min_look.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def sll_min_look @sll_min_look end |
#sll_total_look ⇒ Object
Returns the value of attribute sll_total_look.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def sll_total_look @sll_total_look end |
#time_in_prediction ⇒ Object
Returns the value of attribute time_in_prediction.
9 10 11 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 9 def time_in_prediction @time_in_prediction end |
Instance Method Details
#to_s ⇒ Object
18 19 20 21 22 |
# File 'lib/antlr4ruby/atn/info/decision_info.rb', line 18 def to_s "{decision=#{decision}, context_sensitivities=#{context_sensitivities.length}, errors=#{errors.length}, ambiguities=#{ambiguities.length}, " + "sll_lookahead=#{sll_total_look}, sll_atn_transitions=#{sll_atn_transitions}, sll_dfa_transitions=#{sll_dfa_transitions}, ll_fallback=#{ll_fallback}, " + "ll_lookahead=#{ll_total_look}, ll_atn_transitions=#{ll_atn_transitions}}" end |