5 #include "java/lang/reflect/Type.h"
6 #include "java/lang/Class.h"
13 java::lang::Class *Type::class$ = NULL;
14 jmethodID *Type::mids$ = NULL;
16 jclass Type::initializeClass()
21 jclass cls = (jclass) env->findClass("java/lang/reflect/Type");
23 class$ = (java::lang::Class *) new JObject(cls);
25 return (jclass) class$->this$;
31 #include "structmember.h"
32 #include "functions.h"
38 static PyObject *t_Type_cast_(PyTypeObject *type, PyObject *arg);
39 static PyObject *t_Type_instance_(PyTypeObject *type, PyObject *arg);
41 static PyMethodDef t_Type__methods_[] = {
42 DECLARE_METHOD(t_Type, cast_, METH_O | METH_CLASS),
43 DECLARE_METHOD(t_Type, instance_, METH_O | METH_CLASS),
44 { NULL, NULL, 0, NULL }
47 DECLARE_TYPE(Type, t_Type, java::lang::Object, Type, abstract_init, 0, 0, 0, 0, 0);
49 static PyObject *t_Type_cast_(PyTypeObject *type, PyObject *arg)
51 if (!(arg = castCheck(arg, Type::initializeClass, 1)))
53 return t_Type::wrap_Object(Type(((t_Type *) arg)->object.this$));
55 static PyObject *t_Type_instance_(PyTypeObject *type, PyObject *arg)
57 if (!castCheck(arg, Type::initializeClass, 0))
65 #endif /* _java_generics */