5 #include "java/lang/reflect/WildcardType.h"
6 #include "java/lang/Class.h"
13 java::lang::Class *WildcardType::class$ = NULL;
14 jmethodID *WildcardType::mids$ = NULL;
16 jclass WildcardType::initializeClass()
21 jclass cls = (jclass) env->findClass("java/lang/reflect/WildcardType");
23 mids$ = new jmethodID[max_mid];
24 mids$[mid_getLowerBounds_6f565a00] = env->getMethodID(cls, "getLowerBounds", "()[Ljava/lang/reflect/Type;");
25 mids$[mid_getUpperBounds_6f565a00] = env->getMethodID(cls, "getUpperBounds", "()[Ljava/lang/reflect/Type;");
27 class$ = (java::lang::Class *) new JObject(cls);
29 return (jclass) class$->this$;
32 JArray<java::lang::reflect::Type> WildcardType::getLowerBounds() const
34 return JArray<java::lang::reflect::Type>(env->callObjectMethod(this$, mids$[mid_getLowerBounds_6f565a00]));
37 JArray<java::lang::reflect::Type> WildcardType::getUpperBounds() const
39 return JArray<java::lang::reflect::Type>(env->callObjectMethod(this$, mids$[mid_getUpperBounds_6f565a00]));
45 #include "structmember.h"
46 #include "functions.h"
52 static PyObject *t_WildcardType_cast_(PyTypeObject *type, PyObject *arg);
53 static PyObject *t_WildcardType_instance_(PyTypeObject *type, PyObject *arg);
54 static PyObject *t_WildcardType_getLowerBounds(t_WildcardType *self);
55 static PyObject *t_WildcardType_getUpperBounds(t_WildcardType *self);
57 static PyMethodDef t_WildcardType__methods_[] = {
58 DECLARE_METHOD(t_WildcardType, cast_, METH_O | METH_CLASS),
59 DECLARE_METHOD(t_WildcardType, instance_, METH_O | METH_CLASS),
60 DECLARE_METHOD(t_WildcardType, getLowerBounds, METH_NOARGS),
61 DECLARE_METHOD(t_WildcardType, getUpperBounds, METH_NOARGS),
62 { NULL, NULL, 0, NULL }
65 DECLARE_TYPE(WildcardType, t_WildcardType, java::lang::reflect::Type, WildcardType, abstract_init, 0, 0, 0, 0, 0);
67 static PyObject *t_WildcardType_cast_(PyTypeObject *type, PyObject *arg)
69 if (!(arg = castCheck(arg, WildcardType::initializeClass, 1)))
71 return t_WildcardType::wrap_Object(WildcardType(((t_WildcardType *) arg)->object.this$));
73 static PyObject *t_WildcardType_instance_(PyTypeObject *type, PyObject *arg)
75 if (!castCheck(arg, WildcardType::initializeClass, 0))
80 static PyObject *t_WildcardType_getLowerBounds(t_WildcardType *self)
82 JArray<java::lang::reflect::Type> result((jobject) NULL);
83 OBJ_CALL(result = self->object.getLowerBounds());
85 return result.toSequence(java::lang::reflect::t_Type::wrap_Object);
88 static PyObject *t_WildcardType_getUpperBounds(t_WildcardType *self)
90 JArray<java::lang::reflect::Type> result((jobject) NULL);
91 OBJ_CALL(result = self->object.getUpperBounds());
93 return result.toSequence(java::lang::reflect::t_Type::wrap_Object);
99 #endif /* _java_generics */