~james-page/ubuntu/oneiric/jcc/fix-library-linking

« back to all changes in this revision

Viewing changes to _jcc/java/lang/reflect/Type.h

  • Committer: Bazaar Package Importer
  • Author(s): Ludovico Cavedon
  • Date: 2010-01-31 18:00:47 UTC
  • mfrom: (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100131180047-jryq701kg5wq4943
Tags: 2.5-3
* Merge patch from Ubuntu by Onkar Shinde:
  - When CPU type is i686, use the JRE lib directory corresponding to i386.
    Fixes FTBFS on lpia.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 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 */