class Antlr4::Runtime::ATNDeserializationOptions

Public Class Methods

new(read_only = true, options = nil) click to toggle source
# File lib/antlr4/runtime/atn_deserialization_options.rb, line 7
def initialize(read_only = true, options = nil)
  @read_only = read_only
  if !options.nil?
    @verify_atn = options.verify_atn
    @generate_rule_bypass_transitions = options.generate_rule_bypass_transitions
  else
    @verify_atn = true
    @generate_rule_bypass_transitions = false
  end
end

Public Instance Methods

generate_rule_bypass_transitions(generate_rule_bypass_transitions) click to toggle source
# File lib/antlr4/runtime/atn_deserialization_options.rb, line 39
def generate_rule_bypass_transitions(generate_rule_bypass_transitions)
  throw_if_read_only
  @generate_rule_bypass_transitions = generate_rule_bypass_transitions
end
generate_rule_bypass_transitions?() click to toggle source
# File lib/antlr4/runtime/atn_deserialization_options.rb, line 35
def generate_rule_bypass_transitions?
  @generate_rule_bypass_transitions
end
make_read_only() click to toggle source
# File lib/antlr4/runtime/atn_deserialization_options.rb, line 22
def make_read_only
  @read_only = true
end
read_only?() click to toggle source
# File lib/antlr4/runtime/atn_deserialization_options.rb, line 18
def read_only?
  @read_only
end
throw_if_read_only() click to toggle source
# File lib/antlr4/runtime/atn_deserialization_options.rb, line 44
def throw_if_read_only
  raise IllegalStateException, 'The object is read only.' if read_only?
end
verify_atn(verify_atn) click to toggle source
# File lib/antlr4/runtime/atn_deserialization_options.rb, line 30
def verify_atn(verify_atn)
  throw_if_read_only
  @verify_atn = verify_atn
end
verify_atn?() click to toggle source
# File lib/antlr4/runtime/atn_deserialization_options.rb, line 26
def verify_atn?
  @verify_atn
end