Class: Antlr4::Runtime::PredicateEvalInfo

Inherits:
DecisionEventInfo show all
Defined in:
lib/antlr4/runtime/predicate_eval_info.rb

Instance Attribute Summary collapse

Attributes inherited from DecisionEventInfo

#configs, #decision, #full_ctx, #input, #start_index, #stop_index

Instance Method Summary collapse

Constructor Details

#initialize(decision, input, start_index, stop_index, semctx, eval_result, predicted_alt, full_ctx) ⇒ PredicateEvalInfo


9
10
11
12
13
14
# File 'lib/antlr4/runtime/predicate_eval_info.rb', line 9

def initialize(decision, input, start_index, stop_index, semctx, eval_result, predicted_alt, full_ctx)
  super(decision, ATNConfigSet().new, input, start_index, stop_index, full_ctx)
  @semctx = semctx
  @eval_result = eval_result
  @predicted_alt = predicted_alt
end

Instance Attribute Details

#eval_resultObject (readonly)

Returns the value of attribute eval_result


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

def eval_result
  @eval_result
end

#predicted_altObject (readonly)

Returns the value of attribute predicted_alt


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

def predicted_alt
  @predicted_alt
end

#semctxObject (readonly)

Returns the value of attribute semctx


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

def semctx
  @semctx
end