File: GenericDeclaration.h

package info (click to toggle)
jcc 3.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,944 kB
  • sloc: cpp: 23,270; python: 6,702; java: 65; makefile: 50
file content (65 lines) | stat: -rw-r--r-- 1,633 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifdef _java_generics

#ifndef java_lang_reflect_GenericDeclaration_H
#define java_lang_reflect_GenericDeclaration_H

#include "java/lang/Object.h"

namespace java {
    namespace lang {
        namespace reflect {
            class TypeVariable;
        }
        class Class;
    }
}
template<class T> class JArray;

namespace java {
    namespace lang {
        namespace reflect {

            class GenericDeclaration : public java::lang::Object {
            public:
                enum {
                    mid_getTypeParameters_837d3468,
                    max_mid
                };

                static java::lang::Class *class$;
                static jmethodID *mids$;
                static jclass initializeClass(bool);

                explicit GenericDeclaration(jobject obj) : java::lang::Object(obj) {
                    if (obj != NULL)
                        initializeClass(false);
                }
                GenericDeclaration(const GenericDeclaration& obj) : java::lang::Object(obj) {}

                JArray<java::lang::reflect::TypeVariable> getTypeParameters() const;
            };
        }
    }
}

#include <Python.h>

namespace java {
    namespace lang {
        namespace reflect {
            extern PyTypeObject PY_TYPE(GenericDeclaration);

            class t_GenericDeclaration {
            public:
                PyObject_HEAD
                GenericDeclaration object;
                static PyObject *wrap_Object(const GenericDeclaration&);
                static PyObject *wrap_jobject(const jobject&);
            };
        }
    }
}

#endif

#endif /* _java_generics */