PyLucene 3.4.0-1 import
[pylucene.git] / jcc / _jcc / java / lang / reflect / Type.h
1 #ifdef _java_generics
2
3 #ifndef java_lang_reflect_Type_H
4 #define java_lang_reflect_Type_H
5
6 #include "java/lang/Object.h"
7
8 namespace java {
9     namespace lang {
10         class Class;
11     }
12 }
13 template<class T> class JArray;
14
15 namespace java {
16     namespace lang {
17         namespace reflect {
18
19             class Type : public java::lang::Object {
20             public:
21
22                 static java::lang::Class *class$;
23                 static jmethodID *mids$;
24                 static jclass initializeClass();
25
26                 explicit Type(jobject obj) : java::lang::Object(obj) {
27                     if (obj != NULL)
28                         initializeClass();
29                 }
30                 Type(const Type& obj) : java::lang::Object(obj) {}
31             };
32         }
33     }
34 }
35
36 #include <Python.h>
37
38 namespace java {
39     namespace lang {
40         namespace reflect {
41             extern PyTypeObject PY_TYPE(Type);
42
43             class t_Type {
44             public:
45                 PyObject_HEAD
46                 Type object;
47                 static PyObject *wrap_Object(const Type&);
48                 static PyObject *wrap_jobject(const jobject&);
49             };
50         }
51     }
52 }
53
54 #endif
55 #endif /* _java_generics */