Class: IDL::Expression::Operation::Boolean2

Inherits:
Integer2 show all
Defined in:
lib/ridl/expression.rb

Direct Known Subclasses

And, Or, Xor

Constant Summary collapse

Applicable =
[
  IDL::Type::Boolean
] + Integer2::Applicable

Constants inherited from Integer2

Integer2::NUMBER_OF_OPERANDS

Constants inherited from IDL::Expression::Operation

NUMBER_OF_OPERANDS

Instance Attribute Summary

Attributes inherited from IDL::Expression::Operation

#operands

Attributes inherited from IDL::Expression

#idltype, #value

Class Method Summary collapse

Methods inherited from Integer2

#set_type, suite_sign

Methods inherited from IDL::Expression::Operation

#initialize, #instantiate, #is_template?, #set_type, suite_type

Methods inherited from IDL::Expression

#instantiate, #is_template?, #typename

Constructor Details

This class inherits a constructor from IDL::Expression::Operation

Class Method Details

.checktype(t1, t2) ⇒ Object



172
173
174
175
176
177
178
179
180
# File 'lib/ridl/expression.rb', line 172

def Boolean2.checktype(t1, t2)
  superclass.checktype(*types)

  t = IDL::Type::Boolean
  if (t1 == t && t2 != t) or (t1 != t && t2 == t)
    raise RuntimeError,
      "#{self.name} about #{t1.typename} and #{t2.typename} is illegal."
  end
end