Home
last modified time | relevance | path

Searched refs:subclass (Results 1 – 25 of 596) sorted by relevance

12345678910>>...24

/external/python/cpython3/Lib/
D_py_abc.py54 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 …]
Dabc.py130 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/
Dabc.py105 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.c423 _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/
Dmiddleclass.lua53 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/
DSubclassAdder.java35 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.h59 _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/
Dtest_syntax.py601 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/
Dtest_syntax.py629 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/
DSubclassFilter.java34 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/
Dsuperclass.m100 } // 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/
Dabc.rst45 .. 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/
Dabc.rst70 .. 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 …]
Dhttp.client.rst73 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 …]
Dasyncio-exceptions.rst30 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`.
Durllib.error.rst22 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/
Dproperty-atomic-redecl.m6 // 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/
Ddefault-property-synthesis.m5 // 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/
DStaticMockMethodAdvice.java118 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/
DWrappers.pbobjc.m43 // 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/
DTypeToken.java398 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/
Dservice.rb104 def inherited(subclass) argument
107 subclass.rpc_descs.merge!(rpc_descs)
108 subclass.service_name = service_name
/external/proguard/src/proguard/classfile/util/
DClassSubHierarchyInitializer.java70 private void addSubclass(Clazz subclass, Clazz clazz) in addSubclass() argument
74 clazz.addSubClass(subclass); in addSubclass()
/external/python/cpython3/Objects/clinic/
Dtypeobject.c.h43 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/
DTypeLiteral.java92 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()

12345678910>>...24