Пример #1
0
 def isImplementedByInstancesOf(self, klass):
     """Do instances of the given class implement the interface?
     """
     i = getImplementsOfInstances(klass)
     if i is not None:
         return visitImplements(i, klass, self.isEqualOrExtendedBy,
                                self._getInterface)
     return 0
Пример #2
0
 def isImplementedByInstancesOf(self, klass):
     """Do instances of the given class implement the interface?
     """
     i = getImplementsOfInstances(klass)
     if i is not None:
         return visitImplements(
             i, klass, self.isEqualOrExtendedBy, self._getInterface)
     return 0
Пример #3
0
 def isImplementedBy(self, object):
     """Does the given object implement the interface?
     """
     i = getImplements(object)
     if i is not None:
         return visitImplements(i, object, self.isEqualOrExtendedBy,
                                self._getInterface)
     return 0
Пример #4
0
 def isImplementedBy(self, object):
     """Does the given object implement the interface?
     """
     i = getImplements(object)
     if i is not None:
         return visitImplements(
             i, object, self.isEqualOrExtendedBy, self._getInterface)
     return 0