Class: Antlr4::Runtime::DecisionInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/antlr4/runtime/decision_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(decision) ⇒ DecisionInfo

Returns a new instance of DecisionInfo


24
25
26
27
28
29
30
# File 'lib/antlr4/runtime/decision_info.rb', line 24

def initialize(decision)
  @context_sensitivities = []
  @errors = []
  @ambiguities = []
  @predicate_evals = []
  @decision = decision
end

Instance Attribute Details

#ambiguitiesObject

Returns the value of attribute ambiguities


16
17
18
# File 'lib/antlr4/runtime/decision_info.rb', line 16

def ambiguities
  @ambiguities
end

#context_sensitivitiesObject

Returns the value of attribute context_sensitivities


14
15
16
# File 'lib/antlr4/runtime/decision_info.rb', line 14

def context_sensitivities
  @context_sensitivities
end

#decisionObject

Returns the value of attribute decision


3
4
5
# File 'lib/antlr4/runtime/decision_info.rb', line 3

def decision
  @decision
end

#errorsObject

Returns the value of attribute errors


15
16
17
# File 'lib/antlr4/runtime/decision_info.rb', line 15

def errors
  @errors
end

#invocationsObject

Returns the value of attribute invocations


4
5
6
# File 'lib/antlr4/runtime/decision_info.rb', line 4

def invocations
  @invocations
end

#LL_ATNTransitionsObject

Returns the value of attribute LL_ATNTransitions


21
22
23
# File 'lib/antlr4/runtime/decision_info.rb', line 21

def LL_ATNTransitions
  @LL_ATNTransitions
end

#LL_DFATransitionsObject

Returns the value of attribute LL_DFATransitions


22
23
24
# File 'lib/antlr4/runtime/decision_info.rb', line 22

def LL_DFATransitions
  @LL_DFATransitions
end

#LL_FallbackObject

Returns the value of attribute LL_Fallback


20
21
22
# File 'lib/antlr4/runtime/decision_info.rb', line 20

def LL_Fallback
  @LL_Fallback
end

#LL_MaxLookObject

Returns the value of attribute LL_MaxLook


12
13
14
# File 'lib/antlr4/runtime/decision_info.rb', line 12

def LL_MaxLook
  @LL_MaxLook
end

#LL_MaxLookEventObject

Returns the value of attribute LL_MaxLookEvent


13
14
15
# File 'lib/antlr4/runtime/decision_info.rb', line 13

def LL_MaxLookEvent
  @LL_MaxLookEvent
end

#LL_MinLookObject

Returns the value of attribute LL_MinLook


11
12
13
# File 'lib/antlr4/runtime/decision_info.rb', line 11

def LL_MinLook
  @LL_MinLook
end

#LL_TotalLookObject

Returns the value of attribute LL_TotalLook


10
11
12
# File 'lib/antlr4/runtime/decision_info.rb', line 10

def LL_TotalLook
  @LL_TotalLook
end

#predicate_evalsObject

Returns the value of attribute predicate_evals


17
18
19
# File 'lib/antlr4/runtime/decision_info.rb', line 17

def predicate_evals
  @predicate_evals
end

#SLL_ATNTransitionsObject

Returns the value of attribute SLL_ATNTransitions


18
19
20
# File 'lib/antlr4/runtime/decision_info.rb', line 18

def SLL_ATNTransitions
  @SLL_ATNTransitions
end

#SLL_DFATransitionsObject

Returns the value of attribute SLL_DFATransitions


19
20
21
# File 'lib/antlr4/runtime/decision_info.rb', line 19

def SLL_DFATransitions
  @SLL_DFATransitions
end

#SLL_MaxLookObject

Returns the value of attribute SLL_MaxLook


8
9
10
# File 'lib/antlr4/runtime/decision_info.rb', line 8

def SLL_MaxLook
  @SLL_MaxLook
end

#SLL_MaxLookEventObject

Returns the value of attribute SLL_MaxLookEvent


9
10
11
# File 'lib/antlr4/runtime/decision_info.rb', line 9

def SLL_MaxLookEvent
  @SLL_MaxLookEvent
end

#SLL_MinLookObject

Returns the value of attribute SLL_MinLook


7
8
9
# File 'lib/antlr4/runtime/decision_info.rb', line 7

def SLL_MinLook
  @SLL_MinLook
end

#SLL_TotalLookObject

Returns the value of attribute SLL_TotalLook


6
7
8
# File 'lib/antlr4/runtime/decision_info.rb', line 6

def SLL_TotalLook
  @SLL_TotalLook
end

#timeInPredictionObject

Returns the value of attribute timeInPrediction


5
6
7
# File 'lib/antlr4/runtime/decision_info.rb', line 5

def timeInPrediction
  @timeInPrediction
end

Instance Method Details

#to_sObject


32
33
34
# File 'lib/antlr4/runtime/decision_info.rb', line 32

def to_s
  '' + 'decision=' + @decision + ', contextSensitivities=' + @context_sensitivities.size + ', errors=' + @errors.size + ', ambiguities=' + @ambiguities.size + ', SLL_lookahead=' + SLL_TotalLook + ', SLL_ATNTransitions=' + SLL_ATNTransitions + ', SLL_DFATransitions=' + SLL_DFATransitions + ', LL_Fallback=' + LL_Fallback + ', LL_lookahead=' + LL_TotalLook + ', LL_ATNTransitions=' + LL_ATNTransitions + 'end'
end