Array class provides static methods to dynamically create and access Java arrays.
More...
#include <java_lang_reflect_Array.h>
Inheritance diagram for java::lang::reflect::Array:


Public Types | |
| enum | { xmogDefaultFlags = xmog_base::GLOBAL, xmogMajorVersion = 3, xmogMinorVersion = 2, xmogPatchVersion = 9, xmogBuildNumber = 2047 } |
|
typedef ::xmog_java_array_template< ::java::lang::reflect::Array > | array1D |
|
typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::lang::reflect::Array > > | array2D |
Static Public Member Functions | |
| ::java::lang::Object | get (const ::java::lang::Object &_array, jint index,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Returns the value of the indexed component in the specified array object. | |
| static bool | getBoolean (const ::java::lang::Object &_array, jint index,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of the indexed component in the specified array object, as a boolean. | |
| static jbyte | getByte (const ::java::lang::Object &_array, jint index,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of the indexed component in the specified array object, as a byte. | |
| static jchar | getChar (const ::java::lang::Object &_array, jint index,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of the indexed component in the specified array object, as a char. | |
| static jdouble | getDouble (const ::java::lang::Object &_array, jint index,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of the indexed component in the specified array object, as a double. | |
| static jfloat | getFloat (const ::java::lang::Object &_array, jint index,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of the indexed component in the specified array object, as a float. | |
| static jint | getInt (const ::java::lang::Object &_array, jint index,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of the indexed component in the specified array object, as an int. | |
| static jint | getLength (const ::java::lang::Object &_array,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the length of the specified array object, as an int. | |
| static jlong | getLong (const ::java::lang::Object &_array, jint index,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of the indexed component in the specified array object, as a long. | |
| static jshort | getShort (const ::java::lang::Object &_array, jint index,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of the indexed component in the specified array object, as a short. | |
| ::java::lang::Object | newInstance (const ::java::lang::Class &componentType, const ::xmog_java_int_array &dimensions,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Creates a new array with the specified component type and dimensions. | |
| ::java::lang::Object | newInstance (const ::java::lang::Class &componentType, jint length,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Creates a new array with the specified component type and length. | |
| static void | set (const ::java::lang::Object &_array, jint index, const ::java::lang::Object &value,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Sets the value of the indexed component of the specified array object to the specified new value. | |
| static void | setBoolean (const ::java::lang::Object &_array, jint index, bool z,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Sets the value of the indexed component of the specified array object to the specified boolean value. | |
| static void | setByte (const ::java::lang::Object &_array, jint index, jbyte b,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Sets the value of the indexed component of the specified array object to the specified byte value. | |
| static void | setChar (const ::java::lang::Object &_array, jint index, jchar c,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Sets the value of the indexed component of the specified array object to the specified char value. | |
| static void | setDouble (const ::java::lang::Object &_array, jint index, jdouble d,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Sets the value of the indexed component of the specified array object to the specified double value. | |
| static void | setFloat (const ::java::lang::Object &_array, jint index, jfloat f,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Sets the value of the indexed component of the specified array object to the specified float value. | |
| static void | setInt (const ::java::lang::Object &_array, jint index, jint i,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Sets the value of the indexed component of the specified array object to the specified int value. | |
| static void | setLong (const ::java::lang::Object &_array, jint index, jlong l,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Sets the value of the indexed component of the specified array object to the specified long value. | |
| static void | setShort (const ::java::lang::Object &_array, jint index, jshort s,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Sets the value of the indexed component of the specified array object to the specified short value. | |
Array class provides static methods to dynamically create and access Java arrays.
Array permits widening conversions to occur during a get or set operation, but throws an IllegalArgumentException if a narrowing conversion would occur.
|
||||||||||||||||||||
|
Returns the value of the indexed component in the specified array object. The value is automatically wrapped in an object if it has a primitive type.
|
|
||||||||||||||||||||
|
Returns the value of the indexed component in the specified array object, as a
|
|
||||||||||||||||||||
|
Returns the value of the indexed component in the specified array object, as a
|
|
||||||||||||||||||||
|
Returns the value of the indexed component in the specified array object, as a
|
|
||||||||||||||||||||
|
Returns the value of the indexed component in the specified array object, as a
|
|
||||||||||||||||||||
|
Returns the value of the indexed component in the specified array object, as a
|
|
||||||||||||||||||||
|
Returns the value of the indexed component in the specified array object, as an
|
|
||||||||||||||||
|
Returns the length of the specified array object, as an
|
|
||||||||||||||||||||
|
Returns the value of the indexed component in the specified array object, as a
|
|
||||||||||||||||||||
|
Returns the value of the indexed component in the specified array object, as a
|
|
||||||||||||||||||||
|
Creates a new array with the specified component type and dimensions.
If The number of dimensions of the new array must not exceed the number of array dimensions supported by the implementation (typically 255).
|
|
||||||||||||||||||||
|
Creates a new array with the specified component type and length. Invoking this method is equivalent to creating an array as follows: <blockquote>
int[] x = {length};
Array.newInstance(componentType, x);
</blockquote>
|
|
||||||||||||||||||||||||
|
Sets the value of the indexed component of the specified array object to the specified new value. The new value is first automatically unwrapped if the array has a primitive component type.
|
|
||||||||||||||||||||||||
|
Sets the value of the indexed component of the specified array object to the specified
|
|
||||||||||||||||||||||||
|
Sets the value of the indexed component of the specified array object to the specified
|
|
||||||||||||||||||||||||
|
Sets the value of the indexed component of the specified array object to the specified
|
|
||||||||||||||||||||||||
|
Sets the value of the indexed component of the specified array object to the specified
|
|
||||||||||||||||||||||||
|
Sets the value of the indexed component of the specified array object to the specified
|
|
||||||||||||||||||||||||
|
Sets the value of the indexed component of the specified array object to the specified
|
|
||||||||||||||||||||||||
|
Sets the value of the indexed component of the specified array object to the specified
|
|
||||||||||||||||||||||||
|
Sets the value of the indexed component of the specified array object to the specified
|
1.4.1