1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_lang_reflect_Field__
|
5 |
|
|
#define __java_lang_reflect_Field__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/reflect/AccessibleObject.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
jfieldID _Jv_FromReflectedField (java::lang::reflect::Field *);
|
14 |
|
|
jobject JNICALL _Jv_JNI_ToReflectedField (_Jv_JNIEnv*, jclass, jfieldID, jboolean);
|
15 |
|
|
jobject _Jv_getFieldInternal (java::lang::reflect::Field *f, jclass c, jobject o);
|
16 |
|
|
|
17 |
|
|
class java::lang::reflect::Field : public ::java::lang::reflect::AccessibleObject
|
18 |
|
|
{
|
19 |
|
|
|
20 |
|
|
public: // actually package-private
|
21 |
|
|
Field();
|
22 |
|
|
public:
|
23 |
|
|
::java::lang::Class * getDeclaringClass();
|
24 |
|
|
::java::lang::String * getName();
|
25 |
|
|
private:
|
26 |
|
|
jint getModifiersInternal();
|
27 |
|
|
public:
|
28 |
|
|
jint getModifiers();
|
29 |
|
|
jboolean isSynthetic();
|
30 |
|
|
jboolean isEnumConstant();
|
31 |
|
|
::java::lang::Class * getType();
|
32 |
|
|
jboolean equals(::java::lang::Object *);
|
33 |
|
|
jint hashCode();
|
34 |
|
|
::java::lang::String * toString();
|
35 |
|
|
::java::lang::String * toGenericString();
|
36 |
|
|
::java::lang::Object * get(::java::lang::Object *);
|
37 |
|
|
jboolean getBoolean(::java::lang::Object *);
|
38 |
|
|
jbyte getByte(::java::lang::Object *);
|
39 |
|
|
jchar getChar(::java::lang::Object *);
|
40 |
|
|
jshort getShort(::java::lang::Object *);
|
41 |
|
|
jint getInt(::java::lang::Object *);
|
42 |
|
|
jlong getLong(::java::lang::Object *);
|
43 |
|
|
jfloat getFloat(::java::lang::Object *);
|
44 |
|
|
jdouble getDouble(::java::lang::Object *);
|
45 |
|
|
private:
|
46 |
|
|
jboolean getBoolean(::java::lang::Class *, ::java::lang::Object *);
|
47 |
|
|
jchar getChar(::java::lang::Class *, ::java::lang::Object *);
|
48 |
|
|
jbyte getByte(::java::lang::Class *, ::java::lang::Object *);
|
49 |
|
|
jshort getShort(::java::lang::Class *, ::java::lang::Object *);
|
50 |
|
|
jint getInt(::java::lang::Class *, ::java::lang::Object *);
|
51 |
|
|
jlong getLong(::java::lang::Class *, ::java::lang::Object *);
|
52 |
|
|
jfloat getFloat(::java::lang::Class *, ::java::lang::Object *);
|
53 |
|
|
jdouble getDouble(::java::lang::Class *, ::java::lang::Object *);
|
54 |
|
|
::java::lang::Object * get(::java::lang::Class *, ::java::lang::Object *);
|
55 |
|
|
public:
|
56 |
|
|
void set(::java::lang::Object *, ::java::lang::Object *);
|
57 |
|
|
void setBoolean(::java::lang::Object *, jboolean);
|
58 |
|
|
void setByte(::java::lang::Object *, jbyte);
|
59 |
|
|
void setChar(::java::lang::Object *, jchar);
|
60 |
|
|
void setShort(::java::lang::Object *, jshort);
|
61 |
|
|
void setInt(::java::lang::Object *, jint);
|
62 |
|
|
void setLong(::java::lang::Object *, jlong);
|
63 |
|
|
void setFloat(::java::lang::Object *, jfloat);
|
64 |
|
|
void setDouble(::java::lang::Object *, jdouble);
|
65 |
|
|
::java::lang::reflect::Type * getGenericType();
|
66 |
|
|
::java::lang::annotation::Annotation * getAnnotation(::java::lang::Class *);
|
67 |
|
|
JArray< ::java::lang::annotation::Annotation * > * getDeclaredAnnotations();
|
68 |
|
|
private:
|
69 |
|
|
JArray< ::java::lang::annotation::Annotation * > * getDeclaredAnnotationsInternal();
|
70 |
|
|
::java::lang::String * getSignature();
|
71 |
|
|
public: // actually package-private
|
72 |
|
|
void setByte(::java::lang::Class *, ::java::lang::Object *, jbyte, jboolean);
|
73 |
|
|
void setShort(::java::lang::Class *, ::java::lang::Object *, jshort, jboolean);
|
74 |
|
|
void setInt(::java::lang::Class *, ::java::lang::Object *, jint, jboolean);
|
75 |
|
|
void setLong(::java::lang::Class *, ::java::lang::Object *, jlong, jboolean);
|
76 |
|
|
void setFloat(::java::lang::Class *, ::java::lang::Object *, jfloat, jboolean);
|
77 |
|
|
void setDouble(::java::lang::Class *, ::java::lang::Object *, jdouble, jboolean);
|
78 |
|
|
void setChar(::java::lang::Class *, ::java::lang::Object *, jchar, jboolean);
|
79 |
|
|
void setBoolean(::java::lang::Class *, ::java::lang::Object *, jboolean, jboolean);
|
80 |
|
|
void set(::java::lang::Class *, ::java::lang::Object *, ::java::lang::Object *, ::java::lang::Class *, jboolean);
|
81 |
|
|
private:
|
82 |
|
|
void set(::java::lang::Class *, ::java::lang::Object *, ::java::lang::Object *);
|
83 |
|
|
::java::lang::Class * __attribute__((aligned(__alignof__( ::java::lang::reflect::AccessibleObject)))) declaringClass;
|
84 |
|
|
::java::lang::String * name;
|
85 |
|
|
jint offset;
|
86 |
|
|
::java::lang::Class * type;
|
87 |
|
|
public: // actually package-private
|
88 |
|
|
static const jint FIELD_MODIFIERS = 223;
|
89 |
|
|
public:
|
90 |
|
|
static ::java::lang::Class class$;
|
91 |
|
|
|
92 |
|
|
friend jfieldID (::_Jv_FromReflectedField) (java::lang::reflect::Field *);
|
93 |
|
|
friend jobject JNICALL (::_Jv_JNI_ToReflectedField) (_Jv_JNIEnv*, jclass, jfieldID, jboolean);
|
94 |
|
|
friend class java::lang::Class;
|
95 |
|
|
friend jobject (::_Jv_getFieldInternal) (java::lang::reflect::Field *f, jclass c, jobject o);
|
96 |
|
|
};
|
97 |
|
|
|
98 |
|
|
#endif // __java_lang_reflect_Field__
|