CACAO
Public Member Functions
ObjectArray Class Reference

Actual implementation of access class for Java Object arrays. More...

Inheritance diagram for ObjectArray:
ArrayTemplate< java_handle_t * > Array

Public Member Functions

 ObjectArray (java_handle_objectarray_t *h)
 
 ObjectArray (int32_t length, classinfo *componentclass)
 Creates an array of references to the given class type on the heap. More...
 
java_handle_t ** get_raw_data_ptr ()
 
- Public Member Functions inherited from ArrayTemplate< java_handle_t * >
 ArrayTemplate (java_handle_array_t *h)
 
java_handle_tget_element (int32_t index)
 
void set_element (int32_t index, java_handle_t *value)
 
void get_region (int32_t offset, int32_t count, java_handle_t **buffer)
 
void set_region (int32_t offset, int32_t count, const java_handle_t **buffer)
 
- Public Member Functions inherited from Array
 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_tget_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_tget_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...
 

Additional Inherited Members

- Protected Member Functions inherited from ArrayTemplate< java_handle_t * >
 ArrayTemplate (int32_t length, classinfo *arrayclass)
 
- Protected Attributes inherited from Array
java_handle_array_t_handle
 

Detailed Description

Actual implementation of access class for Java Object arrays.

Definition at line 381 of file array.hpp.

Constructor & Destructor Documentation

ObjectArray::ObjectArray ( java_handle_objectarray_t h)
inline

Definition at line 383 of file array.hpp.

ObjectArray::ObjectArray ( int32_t  length,
classinfo componentclass 
)

Creates an array of references to the given class type on the heap.

The handle pointer to the array can be NULL in case of an exception.

Definition at line 274 of file array.cpp.

Member Function Documentation

java_handle_t** ObjectArray::get_raw_data_ptr ( )
inlinevirtual

Implements ArrayTemplate< java_handle_t * >.

Definition at line 385 of file array.hpp.


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