/external/python/cpython3/Lib/ |
D | _py_abc.py | 54 def register(cls, subclass): argument 59 if not isinstance(subclass, type): 61 if issubclass(subclass, cls): 62 return subclass # Already a subclass 65 if issubclass(cls, subclass): 68 cls._abc_registry.add(subclass) 70 return subclass 95 subclass = instance.__class__ 96 if subclass in cls._abc_cache: 99 if subtype is subclass: [all …]
|
D | abc.py | 89 def register(cls, subclass): argument 94 return _abc_register(cls, subclass) 100 def __subclasscheck__(cls, subclass): argument 102 return _abc_subclasscheck(cls, subclass)
|
/external/python/cpython2/Lib/ |
D | abc.py | 105 def register(cls, subclass): argument 107 if not isinstance(subclass, (type, types.ClassType)): 109 if issubclass(subclass, cls): 113 if issubclass(cls, subclass): 116 cls._abc_registry.add(subclass) 131 subclass = getattr(instance, '__class__', None) 132 if subclass is not None and subclass in cls._abc_cache: 137 subtype = subclass 138 if subtype is subclass or subclass is None: 145 return (cls.__subclasscheck__(subclass) or [all …]
|
/external/python/cpython3/Modules/ |
D | _abc.c | 423 _abc__abc_register_impl(PyObject *module, PyObject *self, PyObject *subclass) in _abc__abc_register_impl() argument 426 if (!PyType_Check(subclass)) { in _abc__abc_register_impl() 430 int result = PyObject_IsSubclass(subclass, self); in _abc__abc_register_impl() 432 Py_INCREF(subclass); in _abc__abc_register_impl() 433 return subclass; /* Already a subclass. */ in _abc__abc_register_impl() 440 result = PyObject_IsSubclass(self, subclass); in _abc__abc_register_impl() 453 if (_add_to_weak_set(&impl->_abc_registry, subclass) < 0) { in _abc__abc_register_impl() 462 Py_INCREF(subclass); in _abc__abc_register_impl() 463 return subclass; in _abc__abc_register_impl() 482 PyObject *subtype, *result = NULL, *subclass = NULL; in _abc__abc_instancecheck_impl() local [all …]
|
/external/proguard/src/proguard/classfile/editor/ |
D | SubclassAdder.java | 35 private final Clazz subclass; field in SubclassAdder 41 public SubclassAdder(Clazz subclass) in SubclassAdder() argument 43 this.subclass = subclass; in SubclassAdder() 51 programClass.addSubClass(subclass); in visitProgramClass() 57 libraryClass.addSubClass(subclass); in visitLibraryClass()
|
/external/bcc/src/lua/bcc/vendor/ |
D | middleclass.lua | 53 for subclass in pairs(aClass.subclasses) do 54 if rawget(subclass.__declaredMethods, name) == nil then 55 _propagateInstanceMethod(subclass, name, f) 135 subclass = function(self, name) function 139 local subclass = _createClass(name, self) 142 _propagateInstanceMethod(subclass, methodName, f) 144 subclass.initialize = function(instance, ...) return self.initialize(instance, ...) end 146 self.subclasses[subclass] = true 147 self:subclassed(subclass) 149 return subclass [all …]
|
/external/python/cpython3/Modules/clinic/ |
D | _abc.c.h | 59 _abc__abc_register_impl(PyObject *module, PyObject *self, PyObject *subclass); 66 PyObject *subclass; in _abc__abc_register() local 72 subclass = args[1]; in _abc__abc_register() 73 return_value = _abc__abc_register_impl(module, self, subclass); in _abc__abc_register() 121 PyObject *subclass); 128 PyObject *subclass; in _abc__abc_subclasscheck() local 134 subclass = args[1]; in _abc__abc_subclasscheck() 135 return_value = _abc__abc_subclasscheck_impl(module, self, subclass); in _abc__abc_subclasscheck()
|
/external/python/cpython2/Lib/test/ |
D | test_syntax.py | 629 filename="<testcase>", mode="exec", subclass=None, lineno=None, offset=None): argument 639 if subclass and not isinstance(err, subclass): 640 self.fail("SyntaxError is not a %s" % subclass.__name__) 716 subclass=IndentationError) 720 subclass=IndentationError) 725 subclass=IndentationError)
|
/external/proguard/src/proguard/classfile/visitor/ |
D | SubclassFilter.java | 34 private final Clazz subclass; field in SubclassFilter 44 public SubclassFilter(Clazz subclass, in SubclassFilter() argument 47 this.subclass = subclass; in SubclassFilter() 83 if (subclasses[index].equals(subclass)) in present()
|
/external/python/cpython3/Lib/test/ |
D | test_syntax.py | 647 filename="<testcase>", mode="exec", subclass=None, lineno=None, offset=None): argument 657 if subclass and not isinstance(err, subclass): 658 self.fail("SyntaxError is not a %s" % subclass.__name__) 744 subclass=IndentationError) 748 subclass=IndentationError) 753 subclass=IndentationError)
|
/external/clang/test/Analysis/ |
D | superclass.m | 100 } // expected-warning {{The 'addChildViewController:' instance method in UIViewController subclass … 101 …cted-warning {{The 'viewDidAppear:' instance method in UIViewController subclass 'TestB' is missin… 102 …d-warning {{The 'viewDidDisappear:' instance method in UIViewController subclass 'TestB' is missin… 103 …ected-warning {{The 'viewDidUnload' instance method in UIViewController subclass 'TestB' is missin… 104 …xpected-warning {{The 'viewDidLoad' instance method in UIViewController subclass 'TestB' is missin… 105 …cted-warning {{The 'viewWillUnload' instance method in UIViewController subclass 'TestB' is missin… 106 …ted-warning {{The 'viewWillAppear:' instance method in UIViewController subclass 'TestB' is missin… 107 …-warning {{The 'viewWillDisappear:' instance method in UIViewController subclass 'TestB' is missin… 108 …ing {{The 'didReceiveMemoryWarning' instance method in UIViewController subclass 'TestB' is missin… 109 …he 'removeFromParentViewController' instance method in UIViewController subclass 'TestB' is missin… [all …]
|
/external/python/cpython2/Doc/library/ |
D | abc.rst | 45 .. method:: register(subclass) 47 Register *subclass* as a "virtual subclass" of this ABC. For 62 .. method:: __subclasshook__(subclass) 66 Check whether *subclass* is considered a subclass of this ABC. This means 69 subclass of the ABC. (This class method is called from the 73 it returns ``True``, the *subclass* is considered a subclass of this ABC. 74 If it returns ``False``, the *subclass* is not considered a subclass of 76 ``NotImplemented``, the subclass check is continued with the usual 123 Finally, the last line makes ``Foo`` a virtual subclass of ``MyIterable``, 170 A subclass of the built-in :func:`property`, indicating an abstract property.
|
/external/python/cpython3/Doc/library/ |
D | abc.rst | 70 .. method:: register(subclass) 72 Register *subclass* as a "virtual subclass" of this ABC. For 86 Returns the registered subclass, to allow usage as a class decorator. 94 .. method:: __subclasshook__(subclass) 98 Check whether *subclass* is considered a subclass of this ABC. This means 101 subclass of the ABC. (This class method is called from the 105 it returns ``True``, the *subclass* is considered a subclass of this ABC. 106 If it returns ``False``, the *subclass* is not considered a subclass of 108 ``NotImplemented``, the subclass check is continued with the usual 154 Finally, the last line makes ``Foo`` a virtual subclass of ``MyIterable``, [all …]
|
D | asyncio-exceptions.rst | 33 :exc:`CancelledError` is now a subclass of :class:`BaseException`. 49 A subclass of :exc:`RuntimeError`. 58 This exception is a subclass of :exc:`EOFError`.
|
D | http.client.rst | 73 A subclass of :class:`HTTPConnection` that uses SSL for communication with 148 The base class of the other exceptions in this module. It is a subclass of 154 A subclass of :exc:`HTTPException`. 159 A subclass of :exc:`HTTPException`, raised if a port is given and is either 165 A subclass of :exc:`HTTPException`. 170 A subclass of :exc:`HTTPException`. 175 A subclass of :exc:`HTTPException`. 180 A subclass of :exc:`HTTPException`. 185 A subclass of :exc:`HTTPException`. 190 A subclass of :exc:`ImproperConnectionState`. [all …]
|
/external/clang/test/SemaObjC/ |
D | property-atomic-redecl.m | 6 // Readonly, atomic public redeclaration of property in subclass. 19 // Readonly, atomic public redeclaration of property in subclass. 36 // Readonly, atomic public redeclaration of property in subclass. 49 // Readonly, atomic public redeclaration of property in subclass.
|
/external/clang/test/CodeGenObjC/ |
D | default-property-synthesis.m | 5 // Do not @synthesize-by-default in the subclass. P1 7 // (such as different type or attributes). Do not @synthesize-by-default in the subclass. P2 9 // same property. Do not @synthesize-by-default in the subclass. P3 11 // same protocol or a derived protocol. Do not @synthesize-by-default in the subclass. P4
|
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/ |
D | StaticMockMethodAdvice.java | 118 private static boolean isMethodDefinedBySuperClass(Class<?> subclass, Class<?> superClass, in isMethodDefinedBySuperClass() argument 122 if (subclass == superClass) { in isMethodDefinedBySuperClass() 129 subclass.getDeclaredMethod(methodName, methodParameters); in isMethodDefinedBySuperClass() 135 subclass = subclass.getSuperclass(); in isMethodDefinedBySuperClass() 137 } while (subclass != null); in isMethodDefinedBySuperClass()
|
/external/protobuf/objectivec/google/protobuf/ |
D | Wrappers.pbobjc.m | 62 // in +initialize for each subclass. 107 // in +initialize for each subclass. 152 // in +initialize for each subclass. 197 // in +initialize for each subclass. 242 // in +initialize for each subclass. 287 // in +initialize for each subclass. 331 // in +initialize for each subclass. 376 // in +initialize for each subclass. 421 // in +initialize for each subclass.
|
/external/guava/guava/src/com/google/common/reflect/ |
D | TypeToken.java | 407 public final TypeToken<? extends T> getSubtype(Class<?> subclass) { in getSubtype() argument 411 return getSubtypeFromLowerBounds(subclass, ((WildcardType) runtimeType).getLowerBounds()); in getSubtype() 415 return getArraySubtype(subclass); in getSubtype() 419 getRawType().isAssignableFrom(subclass), "%s isn't a subclass of %s", subclass, this); in getSubtype() local 420 Type resolvedTypeArgs = resolveTypeArgsForSubclass(subclass); in getSubtype() 1209 private TypeToken<? extends T> getSubtypeFromLowerBounds(Class<?> subclass, Type[] lowerBounds) { 1214 return bound.getSubtype(subclass); 1216 throw new IllegalArgumentException(subclass + " isn't a subclass of " + this); 1236 private TypeToken<? extends T> getArraySubtype(Class<?> subclass) { 1238 TypeToken<?> componentSubtype = getComponentType().getSubtype(subclass.getComponentType()); [all …]
|
/external/guava/android/guava/src/com/google/common/reflect/ |
D | TypeToken.java | 409 public final TypeToken<? extends T> getSubtype(Class<?> subclass) { in getSubtype() argument 413 return getSubtypeFromLowerBounds(subclass, ((WildcardType) runtimeType).getLowerBounds()); in getSubtype() 417 return getArraySubtype(subclass); in getSubtype() 421 getRawType().isAssignableFrom(subclass), "%s isn't a subclass of %s", subclass, this); in getSubtype() local 422 Type resolvedTypeArgs = resolveTypeArgsForSubclass(subclass); in getSubtype() 1213 private TypeToken<? extends T> getSubtypeFromLowerBounds(Class<?> subclass, Type[] lowerBounds) { 1218 return bound.getSubtype(subclass); 1220 throw new IllegalArgumentException(subclass + " isn't a subclass of " + this); 1240 private TypeToken<? extends T> getArraySubtype(Class<?> subclass) { 1242 TypeToken<?> componentSubtype = getComponentType().getSubtype(subclass.getComponentType()); [all …]
|
/external/proguard/src/proguard/classfile/util/ |
D | ClassSubHierarchyInitializer.java | 70 private void addSubclass(Clazz subclass, Clazz clazz) in addSubclass() argument 74 clazz.addSubClass(subclass); in addSubclass()
|
/external/grpc-grpc/src/ruby/lib/grpc/generic/ |
D | service.rb | 104 def inherited(subclass) argument 107 subclass.rpc_descs.merge!(rpc_descs) 108 subclass.service_name = service_name
|
/external/guava/android/guava-tests/test/com/google/common/reflect/ |
D | TypeTokenSubtypeTest.java | 52 Class<?> subclass = new Mall<Outdoor>().new Shop<Electronics>() {}.getClass(); in testSubtypeOfInnerClass_nonStaticAnonymousClass() local 53 assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass() 58 Class<?> subclass = new Mall<Indoor>().new Shop<Electronics>() {}.getClass(); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfOwnerTypeNotMatch() local 59 assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfOwnerTypeNotMatch() 64 Class<?> subclass = new Mall<Outdoor>().new Shop<Grocery>() {}.getClass(); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfInnerTypeNotMatch() local 65 assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfInnerTypeNotMatch() 70 Class<?> subclass = new Mall<Outdoor>().new Shop<Electronics>() {}.getClass(); in testSubtypeOfInnerClass_staticAnonymousClass() local 71 assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_staticAnonymousClass()
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | TypeTokenSubtypeTest.java | 52 Class<?> subclass = new Mall<Outdoor>().new Shop<Electronics>() {}.getClass(); in testSubtypeOfInnerClass_nonStaticAnonymousClass() local 53 assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass() 58 Class<?> subclass = new Mall<Indoor>().new Shop<Electronics>() {}.getClass(); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfOwnerTypeNotMatch() local 59 assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfOwnerTypeNotMatch() 64 Class<?> subclass = new Mall<Outdoor>().new Shop<Grocery>() {}.getClass(); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfInnerTypeNotMatch() local 65 assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_nonStaticAnonymousClass_typeParameterOfInnerTypeNotMatch() 70 Class<?> subclass = new Mall<Outdoor>().new Shop<Electronics>() {}.getClass(); in testSubtypeOfInnerClass_staticAnonymousClass() local 71 assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); in testSubtypeOfInnerClass_staticAnonymousClass()
|