public final class ArrayReflection
extends java.lang.Object
构造器和说明 |
---|
ArrayReflection() |
限定符和类型 | 方法和说明 |
---|---|
static java.lang.Object |
get(java.lang.Object array,
int index)
Returns the value of the indexed component in the supplied array.
|
static int |
getLength(java.lang.Object array)
Returns the length of the supplied array.
|
static java.lang.Object |
newInstance(java.lang.Class c,
int size)
Creates a new array with the specified component type and length.
|
static void |
set(java.lang.Object array,
int index,
java.lang.Object value)
Sets the value of the indexed component in the supplied array to the supplied value.
|
public static java.lang.Object newInstance(java.lang.Class c, int size)
public static int getLength(java.lang.Object array)
public static java.lang.Object get(java.lang.Object array, int index)
public static void set(java.lang.Object array, int index, java.lang.Object value)