Home
last modified time | relevance | path

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

12345678910>>...20

/external/python/cpython3/Lib/
Dabc.py151 def register(cls, subclass): argument
156 if not isinstance(subclass, type):
158 if issubclass(subclass, cls):
159 return subclass # Already a subclass
162 if issubclass(cls, subclass):
165 cls._abc_registry.add(subclass)
167 return subclass
181 subclass = instance.__class__
182 if subclass in cls._abc_cache:
185 if subtype is subclass:
[all …]
/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/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/cpython2/Lib/test/
Dtest_syntax.py496 filename="<testcase>", mode="exec", subclass=None): argument
506 if subclass and not isinstance(err, subclass):
507 self.fail("SyntaxError is not a %s" % subclass.__name__)
552 subclass=IndentationError)
556 subclass=IndentationError)
561 subclass=IndentationError)
/external/python/cpython3/Lib/test/
Dtest_syntax.py547 filename="<testcase>", mode="exec", subclass=None, lineno=None, offset=None): argument
557 if subclass and not isinstance(err, subclass):
558 self.fail("SyntaxError is not a %s" % subclass.__name__)
595 subclass=IndentationError)
599 subclass=IndentationError)
604 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.
Demail.mime.rst52 A subclass of :class:`~email.mime.base.MIMEBase`, this is an intermediate base
68 A subclass of :class:`~email.mime.base.MIMEBase`, this is an intermediate base
97 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
124 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
152 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
181 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
184 of class :class:`~email.message.Message` (or a subclass thereof), otherwise
197 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
Dhttplib.rst80 A subclass of :class:`HTTPConnection` that uses SSL for communication with
128 The base class of the other exceptions in this module. It is a subclass of
136 A subclass of :exc:`HTTPException`.
143 A subclass of :exc:`HTTPException`, raised if a port is given and is either
151 A subclass of :exc:`HTTPException`.
158 A subclass of :exc:`HTTPException`.
165 A subclass of :exc:`HTTPException`.
172 A subclass of :exc:`HTTPException`.
179 A subclass of :exc:`HTTPException`.
186 A subclass of :exc:`ImproperConnectionState`.
[all …]
Drexec.rst24 functions that are deemed safe; you can subclass :class:`RExec` to add or remove
48 *hooks* is an instance of the :class:`RHooks` class or a subclass of it. If it
139 these methods in a subclass is used to change the policies enforced by a
197 any effect; instead, create a subclass of :class:`RExec` and assign them new
207 the majority of built-in functions are harmless. A subclass that wants to
266 :file:`/tmp` to be written, we can subclass the :class:`RExec` class::
/external/python/cpython3/Doc/library/
Dabc.rst44 .. method:: register(subclass)
46 Register *subclass* as a "virtual subclass" of this ABC. For
60 Returns the registered subclass, to allow usage as a class decorator.
68 .. method:: __subclasshook__(subclass)
72 Check whether *subclass* is considered a subclass of this ABC. This means
75 subclass of the ABC. (This class method is called from the
79 it returns ``True``, the *subclass* is considered a subclass of this ABC.
80 If it returns ``False``, the *subclass* is not considered a subclass of
82 ``NotImplemented``, the subclass check is continued with the usual
128 Finally, the last line makes ``Foo`` a virtual subclass of ``MyIterable``,
[all …]
Dhttp.client.rst67 A subclass of :class:`HTTPConnection` that uses SSL for communication with
118 The base class of the other exceptions in this module. It is a subclass of
124 A subclass of :exc:`HTTPException`.
129 A subclass of :exc:`HTTPException`, raised if a port is given and is either
135 A subclass of :exc:`HTTPException`.
140 A subclass of :exc:`HTTPException`.
145 A subclass of :exc:`HTTPException`.
150 A subclass of :exc:`HTTPException`.
155 A subclass of :exc:`HTTPException`.
160 A subclass of :exc:`ImproperConnectionState`.
[all …]
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
Dexceptions.rst187 A subclass of :exc:`ImportError` which is raised by :keyword:`import`
248 method undefined or, if a subclass, set it to :data:`None`.
271 The constructor often actually returns a subclass of :exc:`OSError`, as
272 described in `OS exceptions`_ below. The particular subclass depends on
314 constructor may return a subclass.
407 subclass of :exc:`SyntaxError`.
413 This is a subclass of :exc:`IndentationError`.
473 no value has been bound to that variable. This is a subclass of
480 subclass of :exc:`ValueError`.
509 Raised when a Unicode-related error occurs during encoding. It is a subclass of
[all …]
Demail.mime.rst67 A subclass of :class:`~email.mime.base.MIMEBase`, this is an intermediate base
82 A subclass of :class:`~email.mime.base.MIMEBase`, this is an intermediate base
115 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
146 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
180 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
213 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
216 of class :class:`~email.message.Message` (or a subclass thereof), otherwise
233 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
/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/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/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/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.
DStruct.pbobjc.m75 // in +initialize for each subclass.
128 // in +initialize for each subclass.
239 // 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/proguard/src/proguard/classfile/util/
DClassSubHierarchyInitializer.java70 private void addSubclass(Clazz subclass, Clazz clazz) in addSubclass() argument
74 clazz.addSubClass(subclass); in addSubclass()
/external/guice/core/src/com/google/inject/
DTypeLiteral.java98 static Type getSuperclassTypeParameter(Class<?> subclass) { in getSuperclassTypeParameter() argument
99 Type superclass = subclass.getGenericSuperclass(); in getSuperclassTypeParameter()
110 static TypeLiteral<?> fromSuperclassTypeParameter(Class<?> subclass) { in fromSuperclassTypeParameter() argument
111 return new TypeLiteral<Object>(getSuperclassTypeParameter(subclass)); in fromSuperclassTypeParameter()
/external/clang/include/clang/AST/
DTypeLocNodes.def15 // TYPELOC(Class, Base) - A TypeLoc subclass. If UNQUAL_TYPELOC is
18 // UNQUAL_TYPELOC(Class, Base, Type) - An UnqualTypeLoc subclass.

12345678910>>...20