Example #1
0
 def __init__(self, ifaces, default):
     """
 Initialize interface with the given super-interfaces
 """
     self.ifaces = sorted(ifaces)
     self.default = default
     end = "_DEFAULT" if default else ""
     self.class_name = "INTERFACE_" + gensym() + end
Example #2
0
 def __init__(self, ifaces, default):
   """
   Initialize interface with the given super-interfaces
   """
   self.ifaces = sorted(ifaces)
   self.default = default
   end = "_DEFAULT" if default else ""
   self.class_name = "INTERFACE_"+gensym()+end
Example #3
0
 def __init__(self, ifaces, name = None):
   """
   Initialize this test class which implements the given interfaces
   """
   self.ifaces = ifaces
   if name is None:
     self.class_name = "CLASS_"+gensym()
   else:
     self.class_name = name
Example #4
0
 def __init__(self, ifaces, name=None):
     """
 Initialize this test class which implements the given interfaces
 """
     self.ifaces = ifaces
     if name is None:
         self.class_name = "CLASS_" + gensym()
     else:
         self.class_name = name
Example #5
0
 def __init__(self, ifaces, iface_type, full_name = None):
   """
   Initialize interface with the given super-interfaces
   """
   self.ifaces = sorted(ifaces)
   self.iface_type = iface_type
   if full_name is None:
     end = self.iface_type.get_suffix()
     self.class_name = "INTERFACE_"+gensym()+end
   else:
     self.class_name = full_name
Example #6
0
 def __init__(self, ifaces, default, name = None):
   """
   Initialize interface with the given super-interfaces
   """
   self.ifaces = ifaces
   self.default = default
   if name is None:
     end = "_DEFAULT" if default else ""
     self.class_name = "INTERFACE_"+gensym()+end
   else:
     self.class_name = name
Example #7
0
 def __init__(self, ifaces, default, name=None):
     """
 Initialize interface with the given super-interfaces
 """
     self.ifaces = ifaces
     self.default = default
     if name is None:
         end = "_DEFAULT" if default else ""
         self.class_name = "INTERFACE_" + gensym() + end
     else:
         self.class_name = name
Example #8
0
 def __init__(self, ifaces, iface_type, full_name=None):
     """
 Initialize interface with the given super-interfaces
 """
     self.ifaces = sorted(ifaces)
     self.iface_type = iface_type
     if full_name is None:
         end = self.iface_type.get_suffix()
         self.class_name = "INTERFACE_" + gensym() + end
     else:
         self.class_name = full_name
Example #9
0
 def __init__(self, iface):
   """
   Initialize this test class which implements the given interface
   """
   self.iface = iface
   self.class_name = "CLASS_"+gensym()
Example #10
0
 def __init__(self, iface):
     """
 Initialize this test class which implements the given interface
 """
     self.iface = iface
     self.class_name = "CLASS_" + gensym()