CACAO
Public Member Functions | Static Public Member Functions
FieldAccess Class Reference

This classes provides functions to access Java object instance fields. More...

Inheritance diagram for FieldAccess:
RawFieldAccess gnu_classpath_Pointer java_lang_Boolean java_lang_Byte java_lang_Character java_lang_Class java_lang_ClassLoader java_lang_Double java_lang_Float java_lang_Integer java_lang_Long java_lang_management_MemoryUsage java_lang_reflect_Constructor java_lang_reflect_Field java_lang_reflect_Method java_lang_reflect_VMConstructor java_lang_reflect_VMField java_lang_reflect_VMMethod java_lang_Short java_lang_StackTraceElement java_lang_String java_lang_Thread java_lang_Throwable java_lang_VMThread java_lang_VMThrowable java_nio_Buffer java_nio_DirectByteBufferImpl sun_reflect_ConstantPool

Public Member Functions

template<>
java_handle_tget (java_handle_t *h, const off_t offset)
 
template<>
void set (java_handle_t *h, const off_t offset, java_handle_t *value)
 
template<>
java_handle_tget_volatile (java_handle_t *h, const off_t offset)
 
template<>
void set_volatile (java_handle_t *h, const off_t offset, java_handle_t *value)
 

Static Public Member Functions

template<class T >
static T get (java_handle_t *h, const off_t offset)
 
template<class T >
static void set (java_handle_t *h, const off_t offset, T value)
 
template<class T >
static T get_volatile (java_handle_t *h, const off_t offset)
 
template<class T >
static void set_volatile (java_handle_t *h, const off_t offset, T value)
 

Additional Inherited Members

- Static Private Member Functions inherited from RawFieldAccess
template<class T >
static T raw_get (void *address, const off_t offset)
 
template<class T >
static void raw_set (void *address, const off_t offset, T value)
 

Detailed Description

This classes provides functions to access Java object instance fields.

These functions enter a critical GC section before accessing the Java object throught the handle and leave it afterwards.

Definition at line 84 of file javaobjects.hpp.

Member Function Documentation

template<class T >
T FieldAccess::get ( java_handle_t h,
const off_t  offset 
)
inlinestatic

Definition at line 96 of file javaobjects.hpp.

template<>
java_handle_t* FieldAccess::get ( java_handle_t h,
const off_t  offset 
)
inline

Definition at line 106 of file javaobjects.hpp.

template<class T >
T FieldAccess::get_volatile ( java_handle_t h,
const off_t  offset 
)
inlinestatic

Definition at line 139 of file javaobjects.hpp.

template<>
java_handle_t* FieldAccess::get_volatile ( java_handle_t h,
const off_t  offset 
)
inline

Definition at line 149 of file javaobjects.hpp.

template<class T >
void FieldAccess::set ( java_handle_t h,
const off_t  offset,
value 
)
inlinestatic

Definition at line 118 of file javaobjects.hpp.

template<>
void FieldAccess::set ( java_handle_t h,
const off_t  offset,
java_handle_t value 
)
inline

Definition at line 127 of file javaobjects.hpp.

template<class T >
void FieldAccess::set_volatile ( java_handle_t h,
const off_t  offset,
value 
)
inlinestatic

Definition at line 161 of file javaobjects.hpp.

template<>
void FieldAccess::set_volatile ( java_handle_t h,
const off_t  offset,
java_handle_t value 
)
inline

Definition at line 173 of file javaobjects.hpp.


The documentation for this class was generated from the following file: