Home
last modified time | relevance | path

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

12345678910>>...29

/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.py89 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/
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.c462 _abc__abc_register_impl(PyObject *module, PyObject *self, PyObject *subclass) in _abc__abc_register_impl() argument
465 if (!PyType_Check(subclass)) { in _abc__abc_register_impl()
469 int result = PyObject_IsSubclass(subclass, self); in _abc__abc_register_impl()
471 Py_INCREF(subclass); in _abc__abc_register_impl()
472 return subclass; /* Already a subclass. */ in _abc__abc_register_impl()
479 result = PyObject_IsSubclass(self, subclass); in _abc__abc_register_impl()
492 if (_add_to_weak_set(&impl->_abc_registry, subclass) < 0) { in _abc__abc_register_impl()
501 Py_INCREF(subclass); in _abc__abc_register_impl()
502 return subclass; in _abc__abc_register_impl()
521 PyObject *subtype, *result = NULL, *subclass = NULL; in _abc__abc_instancecheck_impl() local
[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/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/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
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/
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/jackson-databind/src/main/java/com/fasterxml/jackson/databind/type/
DSimpleType.java123 protected JavaType _narrow(Class<?> subclass) in _narrow() argument
125 if (_class == subclass) { in _narrow()
132 if (!_class.isAssignableFrom(subclass)) { in _narrow()
137 return new SimpleType(subclass, _bindings, this, _superInterfaces, in _narrow()
141 Class<?> next = subclass.getSuperclass(); in _narrow()
143 return new SimpleType(subclass, _bindings, this, in _narrow()
148 return new SimpleType(subclass, _bindings, superb, in _narrow()
152 Class<?>[] nextI = subclass.getInterfaces(); in _narrow()
155 return new SimpleType(subclass, _bindings, null, in _narrow()
160 return new SimpleType(subclass, _bindings, null, in _narrow()
[all …]
DTypeFactory.java369 public JavaType constructSpecializedType(JavaType baseType, Class<?> subclass) in constructSpecializedType() argument
372 return constructSpecializedType(baseType, subclass, false); in constructSpecializedType()
392 public JavaType constructSpecializedType(JavaType baseType, Class<?> subclass, in constructSpecializedType() argument
398 if (rawBase == subclass) { in constructSpecializedType()
406 newType = _fromClass(null, subclass, EMPTY_BINDINGS); in constructSpecializedType()
409 if (!rawBase.isAssignableFrom(subclass)) { in constructSpecializedType()
411 ClassUtil.nameOf(subclass), ClassUtil.getTypeDescription(baseType) in constructSpecializedType()
419 if ((subclass == HashMap.class) in constructSpecializedType()
420 || (subclass == LinkedHashMap.class) in constructSpecializedType()
421 || (subclass == EnumMap.class) in constructSpecializedType()
[all …]
/external/auto/value/src/main/java/com/google/auto/value/processor/
Dgwtserializer.vm40 extends `com.google.gwt.user.client.rpc.CustomFieldSerializer`<$subclass$actualTypes> {
42 public static $formalTypes $subclass$actualTypes instantiate(
53 ${subclass}.Builder${actualTypes} builder$ = new ${subclass}.Builder${actualTypes}();
67 return (${subclass}${actualTypes}) builder$.build();
70 return new ${subclass}$actualTypes(
78 … $subclass$actualTypes instance) throws `com.google.gwt.user.client.rpc.SerializationException` {
86 @SuppressWarnings("unused") $subclass$actualTypes instance) {
90 // This dummy field is a hash of the fields in ${subclass}. It will change if they do, including
99 $subclass$actualTypes instance) {
109 public $subclass$actualTypes instantiateInstance(
[all …]
/external/llvm-project/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/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/cpython3/Lib/test/
Dtest_syntax.py782 filename="<testcase>", mode="exec", subclass=None, lineno=None, offset=None): argument
792 if subclass and not isinstance(err, subclass):
793 self.fail("SyntaxError is not a %s" % subclass.__name__)
911 subclass=IndentationError)
915 subclass=IndentationError)
920 subclass=IndentationError)
/external/google-java-format/core/src/test/resources/com/google/googlejavaformat/java/testdata/
DB30223986.output4 * <p>The subclass should implement {@link #bar()}, with the implementation returning a new instance
12 * </code> The subclass should call {@link #get()} to get the foo object, and should not cache it in
13 * the subclass. Example: <code>
19 * @param <T> concrete subclass
DB30223986.input4 * <p>The subclass should implement {@link #bar()}, with the implementation returning a
15 * The subclass should call {@link #get()} to get the foo object,
16 * and should not cache it in the subclass.
24 * @param <T> concrete subclass
/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 …]
/external/javassist/sample/vector/
DVectorAssistant.java60 CtClass subclass; in assist() local
63 subclass = makeSubclass2(pool, elementType); in assist()
65 subclass = makeSubclass(pool, elementType); in assist()
67 CtClass[] results = { subclass, pool.get(vec) }; in assist()
/external/llvm-project/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/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/llvm-project/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/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/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()

12345678910>>...29