class AdLint::Cc1::SingleValue

Public Instance Methods

multiple?() click to toggle source
# File lib/adlint/cc1/value.rb, line 362
def multiple?
  false
end
test_may_be_undefined() click to toggle source
# File lib/adlint/cc1/value.rb, line 370
def test_may_be_undefined
  # NOTE: SingleValue has exactly one value domain.
  #       So, the value of SingleValue may be undefined when the value
  #       must be undefined.
  self.test_must_be_undefined
end
test_must_be_undefined() click to toggle source
# File lib/adlint/cc1/value.rb, line 366
def test_must_be_undefined
  TrivialValueTest.new(self.undefined?)
end
to_single_value() click to toggle source
# File lib/adlint/cc1/value.rb, line 377
def to_single_value
  self
end

Private Instance Methods

logical_shr?() click to toggle source
# File lib/adlint/cc1/value.rb, line 398
def logical_shr?
  subclass_responsibility
end
scalar_value_of_false() click to toggle source
# File lib/adlint/cc1/value.rb, line 390
def scalar_value_of_false
  ScalarValue.of_false(logical_shr?)
end
scalar_value_of_nil() click to toggle source
# File lib/adlint/cc1/value.rb, line 394
def scalar_value_of_nil
  ScalarValue.of_nil(logical_shr?)
end
scalar_value_of_null() click to toggle source
# File lib/adlint/cc1/value.rb, line 382
def scalar_value_of_null
  ScalarValue.of_null(logical_shr?)
end
scalar_value_of_true() click to toggle source
# File lib/adlint/cc1/value.rb, line 386
def scalar_value_of_true
  ScalarValue.of_true(logical_shr?)
end