CACAO
Macros | Functions | Variables
java_lang_reflect_VMField.cpp File Reference

Go to the source code of this file.

Macros

#define _FIELD_GET_TYPE(name, type, uniontype)
 
#define _FIELD_SET_TYPE(name, type, uniontype)
 

Functions

static bool _field_access_check (const java_lang_reflect_VMField &rvmf, fieldinfo *f, java_handle_t *o)
 
static java_handle_t_field_get_handle (fieldinfo *f, java_handle_t *h)
 
static void _field_set_handle (fieldinfo *f, java_handle_t *h, java_handle_t *hvalue)
 
JNIEXPORT jint JNICALL Java_java_lang_reflect_VMField_getModifiersInternal (JNIEnv *env, jobject _this)
 
JNIEXPORT jclass JNICALL Java_java_lang_reflect_VMField_getType (JNIEnv *env, jobject _this)
 
JNIEXPORT jobject JNICALL Java_java_lang_reflect_VMField_get (JNIEnv *env, jobject _this, jobject o)
 
JNIEXPORT jboolean JNICALL Java_java_lang_reflect_VMField_getBoolean (JNIEnv *env, jobject _this, jobject o)
 
JNIEXPORT jbyte JNICALL Java_java_lang_reflect_VMField_getByte (JNIEnv *env, jobject _this, jobject o)
 
JNIEXPORT jchar JNICALL Java_java_lang_reflect_VMField_getChar (JNIEnv *env, jobject _this, jobject o)
 
JNIEXPORT jshort JNICALL Java_java_lang_reflect_VMField_getShort (JNIEnv *env, jobject _this, jobject o)
 
JNIEXPORT jint JNICALL Java_java_lang_reflect_VMField_getInt (JNIEnv *env, jobject _this, jobject o)
 
JNIEXPORT jlong JNICALL Java_java_lang_reflect_VMField_getLong (JNIEnv *env, jobject _this, jobject o)
 
JNIEXPORT jfloat JNICALL Java_java_lang_reflect_VMField_getFloat (JNIEnv *env, jobject _this, jobject o)
 
JNIEXPORT jdouble JNICALL Java_java_lang_reflect_VMField_getDouble (JNIEnv *env, jobject _this, jobject o)
 
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_set (JNIEnv *env, jobject _this, jobject o, jobject value)
 
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setBoolean (JNIEnv *env, jobject _this, jobject o, jboolean value)
 
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setByte (JNIEnv *env, jobject _this, jobject o, jbyte value)
 
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setChar (JNIEnv *env, jobject _this, jobject o, jchar value)
 
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setShort (JNIEnv *env, jobject _this, jobject o, jshort value)
 
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setInt (JNIEnv *env, jobject _this, jobject o, jint value)
 
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setLong (JNIEnv *env, jobject _this, jobject o, jlong value)
 
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setFloat (JNIEnv *env, jobject _this, jobject o, jfloat value)
 
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setDouble (JNIEnv *env, jobject _this, jobject o, jdouble value)
 
JNIEXPORT jstring JNICALL Java_java_lang_reflect_VMField_getSignature (JNIEnv *env, jobject _this)
 
JNIEXPORT jobject JNICALL Java_java_lang_reflect_VMField_declaredAnnotations (JNIEnv *env, jobject _this)
 
void _Jv_java_lang_reflect_VMField_init (void)
 

Variables

static const JNINativeMethod methods []
 

Macro Definition Documentation

#define _FIELD_GET_TYPE (   name,
  type,
  uniontype 
)
Value:
static inline type _field_get_##name(fieldinfo *f, java_handle_t* h) \
{ \
type ret; \
if (f->flags & ACC_STATIC) { \
ret = f->value->uniontype; \
} else { \
ret = *(type *) (((intptr_t) LLNI_DIRECT(h)) + f->offset); \
} \
return ret; \
}
#define LLNI_CRITICAL_END
Definition: llni.hpp:141
JNIEnv jclass jobject const char * name
Definition: jvmti.h:312
#define return
#define LLNI_CRITICAL_START
Definition: llni.hpp:140
#define LLNI_DIRECT(hdl)
Definition: llni.hpp:54

Definition at line 125 of file java_lang_reflect_VMField.cpp.

#define _FIELD_SET_TYPE (   name,
  type,
  uniontype 
)
Value:
static inline void _field_set_##name(fieldinfo* f, java_handle_t* h, type value) \
{ \
if (f->flags & ACC_STATIC) { \
f->value->uniontype = value; \
} else { \
*(type *) (((intptr_t) LLNI_DIRECT(h)) + f->offset) = value; \
} \
}
#define LLNI_CRITICAL_END
Definition: llni.hpp:141
JNIEnv jclass jobject const char * name
Definition: jvmti.h:312
#define LLNI_CRITICAL_START
Definition: llni.hpp:140
#define LLNI_DIRECT(hdl)
Definition: llni.hpp:54

Definition at line 171 of file java_lang_reflect_VMField.cpp.

Function Documentation

static bool _field_access_check ( const java_lang_reflect_VMField rvmf,
fieldinfo f,
java_handle_t o 
)
static

Definition at line 69 of file java_lang_reflect_VMField.cpp.

static java_handle_t* _field_get_handle ( fieldinfo f,
java_handle_t h 
)
inlinestatic

Definition at line 139 of file java_lang_reflect_VMField.cpp.

static void _field_set_handle ( fieldinfo f,
java_handle_t h,
java_handle_t hvalue 
)
inlinestatic

Definition at line 183 of file java_lang_reflect_VMField.cpp.

void _Jv_java_lang_reflect_VMField_init ( void  )

Definition at line 1124 of file java_lang_reflect_VMField.cpp.

JNIEXPORT jobject JNICALL Java_java_lang_reflect_VMField_declaredAnnotations ( JNIEnv env,
jobject  _this 
)

Definition at line 1064 of file java_lang_reflect_VMField.cpp.

JNIEXPORT jobject JNICALL Java_java_lang_reflect_VMField_get ( JNIEnv env,
jobject  _this,
jobject  o 
)

Definition at line 246 of file java_lang_reflect_VMField.cpp.

JNIEXPORT jboolean JNICALL Java_java_lang_reflect_VMField_getBoolean ( JNIEnv env,
jobject  _this,
jobject  o 
)

Definition at line 298 of file java_lang_reflect_VMField.cpp.

JNIEXPORT jbyte JNICALL Java_java_lang_reflect_VMField_getByte ( JNIEnv env,
jobject  _this,
jobject  o 
)

Definition at line 323 of file java_lang_reflect_VMField.cpp.

JNIEXPORT jchar JNICALL Java_java_lang_reflect_VMField_getChar ( JNIEnv env,
jobject  _this,
jobject  o 
)

Definition at line 348 of file java_lang_reflect_VMField.cpp.

JNIEXPORT jdouble JNICALL Java_java_lang_reflect_VMField_getDouble ( JNIEnv env,
jobject  _this,
jobject  o 
)

Definition at line 489 of file java_lang_reflect_VMField.cpp.

JNIEXPORT jfloat JNICALL Java_java_lang_reflect_VMField_getFloat ( JNIEnv env,
jobject  _this,
jobject  o 
)

Definition at line 457 of file java_lang_reflect_VMField.cpp.

JNIEXPORT jint JNICALL Java_java_lang_reflect_VMField_getInt ( JNIEnv env,
jobject  _this,
jobject  o 
)

Definition at line 399 of file java_lang_reflect_VMField.cpp.

JNIEXPORT jlong JNICALL Java_java_lang_reflect_VMField_getLong ( JNIEnv env,
jobject  _this,
jobject  o 
)

Definition at line 427 of file java_lang_reflect_VMField.cpp.

JNIEXPORT jint JNICALL Java_java_lang_reflect_VMField_getModifiersInternal ( JNIEnv env,
jobject  _this 
)

Definition at line 210 of file java_lang_reflect_VMField.cpp.

JNIEXPORT jshort JNICALL Java_java_lang_reflect_VMField_getShort ( JNIEnv env,
jobject  _this,
jobject  o 
)

Definition at line 373 of file java_lang_reflect_VMField.cpp.

JNIEXPORT jstring JNICALL Java_java_lang_reflect_VMField_getSignature ( JNIEnv env,
jobject  _this 
)

Definition at line 1042 of file java_lang_reflect_VMField.cpp.

JNIEXPORT jclass JNICALL Java_java_lang_reflect_VMField_getType ( JNIEnv env,
jobject  _this 
)

Definition at line 223 of file java_lang_reflect_VMField.cpp.

JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_set ( JNIEnv env,
jobject  _this,
jobject  o,
jobject  value 
)

Definition at line 523 of file java_lang_reflect_VMField.cpp.

JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setBoolean ( JNIEnv env,
jobject  _this,
jobject  o,
jboolean  value 
)

Definition at line 793 of file java_lang_reflect_VMField.cpp.

JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setByte ( JNIEnv env,
jobject  _this,
jobject  o,
jbyte  value 
)

Definition at line 818 of file java_lang_reflect_VMField.cpp.

JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setChar ( JNIEnv env,
jobject  _this,
jobject  o,
jchar  value 
)

Definition at line 854 of file java_lang_reflect_VMField.cpp.

JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setDouble ( JNIEnv env,
jobject  _this,
jobject  o,
jdouble  value 
)

Definition at line 1017 of file java_lang_reflect_VMField.cpp.

JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setFloat ( JNIEnv env,
jobject  _this,
jobject  o,
jfloat  value 
)

Definition at line 989 of file java_lang_reflect_VMField.cpp.

JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setInt ( JNIEnv env,
jobject  _this,
jobject  o,
jint  value 
)

Definition at line 924 of file java_lang_reflect_VMField.cpp.

JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setLong ( JNIEnv env,
jobject  _this,
jobject  o,
jlong  value 
)

Definition at line 958 of file java_lang_reflect_VMField.cpp.

JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setShort ( JNIEnv env,
jobject  _this,
jobject  o,
jshort  value 
)

Definition at line 889 of file java_lang_reflect_VMField.cpp.

Variable Documentation

const JNINativeMethod methods[]
static
Initial value:
= {
{ (char*) "getModifiersInternal", (char*) "()I", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_getModifiersInternal },
{ (char*) "getType", (char*) "()Ljava/lang/Class;", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_getType },
{ (char*) "get", (char*) "(Ljava/lang/Object;)Ljava/lang/Object;", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_get },
{ (char*) "getBoolean", (char*) "(Ljava/lang/Object;)Z", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_getBoolean },
{ (char*) "getByte", (char*) "(Ljava/lang/Object;)B", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_getByte },
{ (char*) "getChar", (char*) "(Ljava/lang/Object;)C", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_getChar },
{ (char*) "getShort", (char*) "(Ljava/lang/Object;)S", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_getShort },
{ (char*) "getInt", (char*) "(Ljava/lang/Object;)I", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_getInt },
{ (char*) "getLong", (char*) "(Ljava/lang/Object;)J", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_getLong },
{ (char*) "getFloat", (char*) "(Ljava/lang/Object;)F", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_getFloat },
{ (char*) "getDouble", (char*) "(Ljava/lang/Object;)D", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_getDouble },
{ (char*) "set", (char*) "(Ljava/lang/Object;Ljava/lang/Object;)V", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_set },
{ (char*) "setBoolean", (char*) "(Ljava/lang/Object;Z)V", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_setBoolean },
{ (char*) "setByte", (char*) "(Ljava/lang/Object;B)V", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_setByte },
{ (char*) "setChar", (char*) "(Ljava/lang/Object;C)V", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_setChar },
{ (char*) "setShort", (char*) "(Ljava/lang/Object;S)V", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_setShort },
{ (char*) "setInt", (char*) "(Ljava/lang/Object;I)V", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_setInt },
{ (char*) "setLong", (char*) "(Ljava/lang/Object;J)V", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_setLong },
{ (char*) "setFloat", (char*) "(Ljava/lang/Object;F)V", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_setFloat },
{ (char*) "setDouble", (char*) "(Ljava/lang/Object;D)V", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_setDouble },
{ (char*) "getSignature", (char*) "()Ljava/lang/String;", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_getSignature },
{ (char*) "declaredAnnotations", (char*) "()Ljava/util/Map;", (void*) (uintptr_t) &Java_java_lang_reflect_VMField_declaredAnnotations },
}
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setInt(JNIEnv *env, jobject _this, jobject o, jint value)
JNIEXPORT jbyte JNICALL Java_java_lang_reflect_VMField_getByte(JNIEnv *env, jobject _this, jobject o)
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_set(JNIEnv *env, jobject _this, jobject o, jobject value)
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setDouble(JNIEnv *env, jobject _this, jobject o, jdouble value)
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setFloat(JNIEnv *env, jobject _this, jobject o, jfloat value)
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setByte(JNIEnv *env, jobject _this, jobject o, jbyte value)
JNIEXPORT jint JNICALL Java_java_lang_reflect_VMField_getModifiersInternal(JNIEnv *env, jobject _this)
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setChar(JNIEnv *env, jobject _this, jobject o, jchar value)
JNIEXPORT jboolean JNICALL Java_java_lang_reflect_VMField_getBoolean(JNIEnv *env, jobject _this, jobject o)
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setLong(JNIEnv *env, jobject _this, jobject o, jlong value)
JNIEXPORT jlong JNICALL Java_java_lang_reflect_VMField_getLong(JNIEnv *env, jobject _this, jobject o)
JNIEXPORT jshort JNICALL Java_java_lang_reflect_VMField_getShort(JNIEnv *env, jobject _this, jobject o)
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setShort(JNIEnv *env, jobject _this, jobject o, jshort value)
JNIEXPORT jfloat JNICALL Java_java_lang_reflect_VMField_getFloat(JNIEnv *env, jobject _this, jobject o)
JNIEXPORT jint JNICALL Java_java_lang_reflect_VMField_getInt(JNIEnv *env, jobject _this, jobject o)
JNIEXPORT jdouble JNICALL Java_java_lang_reflect_VMField_getDouble(JNIEnv *env, jobject _this, jobject o)
JNIEXPORT jstring JNICALL Java_java_lang_reflect_VMField_getSignature(JNIEnv *env, jobject _this)
JNIEXPORT jchar JNICALL Java_java_lang_reflect_VMField_getChar(JNIEnv *env, jobject _this, jobject o)
JNIEXPORT jobject JNICALL Java_java_lang_reflect_VMField_declaredAnnotations(JNIEnv *env, jobject _this)
JNIEXPORT jclass JNICALL Java_java_lang_reflect_VMField_getType(JNIEnv *env, jobject _this)
JNIEXPORT void JNICALL Java_java_lang_reflect_VMField_setBoolean(JNIEnv *env, jobject _this, jobject o, jboolean value)
JNIEXPORT jobject JNICALL Java_java_lang_reflect_VMField_get(JNIEnv *env, jobject _this, jobject o)

Definition at line 1090 of file java_lang_reflect_VMField.cpp.