Home
last modified time | relevance | path

Searched refs:metaclass (Results 1 – 11 of 11) sorted by relevance

/external/chromium_org/third_party/cython/src/Cython/Utility/
DObjectHandling.c669 static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases);
673 static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
683 if (!metaclass) {
684 metaclass = tmptype;
687 if (PyType_IsSubtype(metaclass, tmptype))
689 if (PyType_IsSubtype(tmptype, metaclass)) {
690 metaclass = tmptype;
701 if (!metaclass) {
703 metaclass = &PyClass_Type;
705 metaclass = &PyType_Type;
[all …]
/external/javassist/src/main/javassist/tools/reflect/
DReflection.java146 String metaobject, String metaclass) in makeReflective() argument
151 classPool.get(metaclass)); in makeReflective()
172 Class metaobject, Class metaclass) in makeReflective() argument
176 metaclass.getName()); in makeReflective()
198 CtClass metaobject, CtClass metaclass) in makeReflective() argument
217 return modifyClassfile(clazz, metaobject, metaclass); in makeReflective()
238 CtClass metaclass) in modifyClassfile() argument
268 clazz.addField(f, CtField.Initializer.byNew(metaclass, in modifyClassfile()
DLoader.java158 String metaobject, String metaclass) in makeReflective() argument
161 return reflection.makeReflective(clazz, metaobject, metaclass); in makeReflective()
/external/chromium_org/third_party/jinja2/
D_compat.py102 class metaclass(meta): class
109 return metaclass('temporary_class', None, {})
/external/chromium_org/third_party/cython/src/
Dpylintrc251 # List of valid names for the first argument in a metaclass class method.
252 valid-metaclass-classmethod-first-arg=mcs
DCHANGES.rst166 * The metaclass of a Python class was not inherited from its parent
168 provided explicitly using the Py3 ``metaclass`` keyword argument.
170 dict will still take precedence if not using Py3 metaclass syntax,
172 by a metaclass of a base class, see PEP 3115). It is generally
/external/chromium_org/third_party/cython/src/Cython/Compiler/
DNodes.py3983 metaclass = None variable in PyClassDefNode
4008 if self.metaclass is not None:
4013 self.metaclass = item.value
4022 assert self.metaclass is not None
4024 if force_py3_semantics or self.bases or self.mkw or self.metaclass:
4025 if self.metaclass is None:
4036 self.metaclass = ExprNodes.PyClassMetaclassNode(
4044 metaclass=self.metaclass, bases=self.bases, mkw=self.mkw)
4048 metaclass=self.metaclass, mkw=self.mkw,
4131 if self.metaclass:
[all …]
DExprNodes.py6993 if self.metaclass:
6994 metaclass = self.metaclass.result()
6996 metaclass = "((PyObject*)&__Pyx_DefaultClassType)"
7000 metaclass,
7193 if self.metaclass:
7194 metaclass = self.metaclass.result()
7196 metaclass = "(PyObject *) NULL"
7200 metaclass,
/external/clang/lib/Rewrite/Frontend/
DRewriteModernObjC.cpp6570 bool metaclass = ((flags & CLS_META) != 0); in Write__class_ro_t_initializer() local
6573 if (metaclass) in Write__class_ro_t_initializer()
6583 if (!metaclass && baseProtocols.size() > 0) { in Write__class_ro_t_initializer()
6591 if (!metaclass && ivars.size() > 0) { in Write__class_ro_t_initializer()
6601 if (!metaclass && Properties.size() > 0) { in Write__class_ro_t_initializer()
6614 const ObjCInterfaceDecl *CDecl, bool metaclass) { in Write_class_t() argument
6626 if (metaclass && rootClass) { in Write_class_t()
6654 if (metaclass && RootClass != SuperClass) { in Write_class_t()
6672 if (metaclass) { in Write_class_t()
6703 if (metaclass) in Write_class_t()
[all …]
/external/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
DAppleObjCRuntimeV2.cpp993 …ClassDescriptorV2 metaclass(m_runtime, objc_class->m_isa, NULL); // The metaclass is not in the ca… in Describe() local
998 metaclass.Describe(std::function <void (ObjCLanguageRuntime::ObjCISA)> (nullptr), in Describe()
/external/clang/docs/
DAutomaticReferenceCounting.rst120 every class *T* there's an associated metaclass; it has no fields, its
121 superclass is the metaclass of *T*'s superclass, and its metaclass is a global
122 class. Every class has a global object whose class is the class's metaclass;
131 can be invoked on objects of the metaclass. A method may be invoked by