class Antlr4::Runtime::PredicateTransition
Attributes
is_ctx_dependent[R]
pred_index[R]
rule_index[R]
Public Class Methods
new(target, rule_index, pred_index, is_ctx_dependent)
click to toggle source
Calls superclass method
Antlr4::Runtime::AbstractPredicateTransition::new
# File lib/antlr4/runtime/predicate_transition.rb, line 8 def initialize(target, rule_index, pred_index, is_ctx_dependent) super(target) @rule_index = rule_index @pred_index = pred_index @is_ctx_dependent = is_ctx_dependent end
Public Instance Methods
epsilon?()
click to toggle source
# File lib/antlr4/runtime/predicate_transition.rb, line 19 def epsilon? true end
matches(_symbol, _min_vocab_symbol, _max_vocab_symbol)
click to toggle source
# File lib/antlr4/runtime/predicate_transition.rb, line 23 def matches(_symbol, _min_vocab_symbol, _max_vocab_symbol) false end
predicate()
click to toggle source
# File lib/antlr4/runtime/predicate_transition.rb, line 27 def predicate SemanticContext::Predicate.new(@rule_index, @pred_index, @is_ctx_dependent) end
serialization_type()
click to toggle source
# File lib/antlr4/runtime/predicate_transition.rb, line 15 def serialization_type PREDICATE end
to_s()
click to toggle source
# File lib/antlr4/runtime/predicate_transition.rb, line 31 def to_s 'pred_' + @rule_index + ':' + @pred_index end