/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 | 130 def register(cls, subclass): argument 135 return _abc_register(cls, subclass) 141 def __subclasscheck__(cls, subclass): argument 143 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/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/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/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 70 &self, &subclass)) { 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 132 &self, &subclass)) { in _abc__abc_subclasscheck() 135 return_value = _abc__abc_subclasscheck_impl(module, self, subclass); in _abc__abc_subclasscheck()
|
/external/python/cpython3/Lib/test/ |
D | test_syntax.py | 601 filename="<testcase>", mode="exec", subclass=None, lineno=None, offset=None): argument 611 if subclass and not isinstance(err, subclass): 612 self.fail("SyntaxError is not a %s" % subclass.__name__) 655 subclass=IndentationError) 659 subclass=IndentationError) 664 subclass=IndentationError)
|
/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/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 | http.client.rst | 73 A subclass of :class:`HTTPConnection` that uses SSL for communication with 124 The base class of the other exceptions in this module. It is a subclass of 130 A subclass of :exc:`HTTPException`. 135 A subclass of :exc:`HTTPException`, raised if a port is given and is either 141 A subclass of :exc:`HTTPException`. 146 A subclass of :exc:`HTTPException`. 151 A subclass of :exc:`HTTPException`. 156 A subclass of :exc:`HTTPException`. 161 A subclass of :exc:`HTTPException`. 166 A subclass of :exc:`ImproperConnectionState`. [all …]
|
D | asyncio-exceptions.rst | 30 This exception is a subclass of :exc:`Exception`, so it can be 63 A subclass of :exc:`RuntimeError`. 72 This exception is a subclass of :exc:`EOFError`.
|
D | urllib.error.rst | 22 a problem. It is a subclass of :exc:`OSError`. 30 :exc:`URLError` has been made a subclass of :exc:`OSError` instead 36 Though being an exception (a subclass of :exc:`URLError`), an
|
/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 | 43 // in +initialize for each subclass. 86 // in +initialize for each subclass. 129 // in +initialize for each subclass. 172 // in +initialize for each subclass. 215 // in +initialize for each subclass. 258 // in +initialize for each subclass. 300 // in +initialize for each subclass. 343 // in +initialize for each subclass. 386 // in +initialize for each subclass.
|
/external/guava/guava/src/com/google/common/reflect/ |
D | TypeToken.java | 398 public final TypeToken<? extends T> getSubtype(Class<?> subclass) { in getSubtype() argument 402 return getSubtypeFromLowerBounds(subclass, ((WildcardType) runtimeType).getLowerBounds()); in getSubtype() 404 checkArgument(getRawType().isAssignableFrom(subclass), in getSubtype() 405 "%s isn't a subclass of %s", subclass, this); in getSubtype() local 408 return getArraySubtype(subclass); in getSubtype() 412 of(resolveTypeArgsForSubclass(subclass)); in getSubtype() 986 private TypeToken<? extends T> getSubtypeFromLowerBounds(Class<?> subclass, Type[] lowerBounds) { 991 return bound.getSubtype(subclass); 993 throw new IllegalArgumentException(subclass + " isn't a subclass of " + this); 1012 private TypeToken<? extends T> getArraySubtype(Class<?> subclass) { [all …]
|
/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/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/python/cpython3/Objects/clinic/ |
D | typeobject.c.h | 43 type___subclasscheck___impl(PyTypeObject *self, PyObject *subclass); 46 type___subclasscheck__(PyTypeObject *self, PyObject *subclass) in type___subclasscheck__() argument 51 _return_value = type___subclasscheck___impl(self, subclass); in type___subclasscheck__()
|
/external/guice/core/src/com/google/inject/ |
D | TypeLiteral.java | 92 static Type getSuperclassTypeParameter(Class<?> subclass) { in getSuperclassTypeParameter() argument 93 Type superclass = subclass.getGenericSuperclass(); in getSuperclassTypeParameter() 102 static TypeLiteral<?> fromSuperclassTypeParameter(Class<?> subclass) { in fromSuperclassTypeParameter() argument 103 return new TypeLiteral<Object>(getSuperclassTypeParameter(subclass)); in fromSuperclassTypeParameter()
|