/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This source file is part of SableVM classlib-stubs. * * * * See the file "LICENSE" for the copyright information and for * * the terms and conditions for copying, distribution and * * modification of this source file. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ package java.lang.reflect; public final class Array extends Object { native public static Object newInstance(Class componentType, int length) throws NegativeArraySizeException; native public static Object newInstance(Class componentType, int[] dimensions) throws IllegalArgumentException, NegativeArraySizeException; native public static int getLength(Object array) throws IllegalArgumentException; native public static Object get(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static boolean getBoolean(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static byte getByte(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static char getChar(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static short getShort(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static int getInt(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static long getLong(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static float getFloat(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static double getDouble(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static void set(Object array, int index, Object value) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static void setBoolean(Object array, int index, boolean z) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static void setByte(Object array, int index, byte b) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static void setChar(Object array, int index, char c) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static void setShort(Object array, int index, short s) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static void setInt(Object array, int index, int i) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static void setLong(Object array, int index, long l) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static void setFloat(Object array, int index, float f) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; native public static void setDouble(Object array, int index, double d) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; private Array() { } }