181 vm_abort(
"Array::primitive_element_get: invalid array element type %d",
260 array.
set_element(index, static_cast<java_handle_t*>(value.
a));
264 vm_abort(
"array_element_primitive_set: invalid array element type %d",
289 if (arrayclass == NULL) {
295 Array a(length, arrayclass);
void exceptions_throw_illegalargumentexception(void)
virtual java_handle_array_t * get_handle() const
classinfo * class_array_of(classinfo *component, bool link)
This is a template of an accessor class for Java arrays of a specific type.
Actual implementation of access class for Java Object arrays.
T get_element(int32_t index)
Actual implementations of common Java array access classes.
static java_handle_t * box(int type, imm_union value)
Box a primitive of the given type.
void set_element(int32_t index, T value)
void set_primitive_element(int32_t index, imm_union value)
Sets a primitive element in the given Java array.
void vm_abort(const char *text,...)
void exceptions_throw_nullpointerexception(void)
classinfo * class_java_lang_Class
ObjectArray(java_handle_objectarray_t *h)
arraydescriptor * arraydesc
This is a generic accessor class for Java arrays (of unspecified type), which can be used to safely o...
#define LLNI_vftbl_direct(obj)
classinfo * link_class(classinfo *c)
java_handle_array_t * _handle
static bool unbox_typed(java_handle_t *o, int type, imm_union *value)
Unbox a primitive of the given type.
ClassArray(int32_t length)
Creates an array of references to classinfos on the heap.
java_handle_t * get_boxed_element(int32_t index)
Returns a boxed element of the given Java array.
const char const void jint length
imm_union get_primitive_element(int32_t index)
Returns a primitive element of the given Java array.
void set_boxed_element(int32_t index, java_handle_t *o)
Sets a boxed element in the given Java array.