CACAO
|
This is a generic accessor class for Java arrays (of unspecified type), which can be used to safely operate on Java arrays in native code. More...
Public Member Functions | |
Array (java_handle_t *h) | |
Constructor checks if passed handle really is a Java array. More... | |
Array (int32_t length, classinfo *arrayclass) | |
Creates an array of the given array type on the heap. More... | |
virtual | ~Array () |
virtual java_handle_array_t * | get_handle () const |
int32_t | get_length () const |
bool | is_null () const |
bool | is_non_null () const |
imm_union | get_primitive_element (int32_t index) |
Returns a primitive element of the given Java array. More... | |
void | set_primitive_element (int32_t index, imm_union value) |
Sets a primitive element in the given Java array. More... | |
java_handle_t * | get_boxed_element (int32_t index) |
Returns a boxed element of the given Java array. More... | |
void | set_boxed_element (int32_t index, java_handle_t *o) |
Sets a boxed element in the given Java array. More... | |
Protected Attributes | |
java_handle_array_t * | _handle |
Private Member Functions | |
Array (Array *a) | |
Array (Array &a) | |
This is a generic accessor class for Java arrays (of unspecified type), which can be used to safely operate on Java arrays in native code.
|
inline |
|
inline |
java_handle_t * Array::get_boxed_element | ( | int32_t | index | ) |
|
inlinevirtual |
imm_union Array::get_primitive_element | ( | int32_t | index | ) |
void Array::set_boxed_element | ( | int32_t | index, |
java_handle_t * | o | ||
) |
|
protected |