/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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; import org.sablevm.annotations.ImplementedInVM; public final class Array extends Object { @ImplementedInVM native public static Object newInstance(Class componentType, int length) throws NegativeArraySizeException; @ImplementedInVM native public static Object newInstance(Class componentType, int[] dimensions) throws IllegalArgumentException, NegativeArraySizeException; @ImplementedInVM native public static int getLength(Object array) throws IllegalArgumentException; @ImplementedInVM native public static Object get(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static boolean getBoolean(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static byte getByte(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static char getChar(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static short getShort(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static int getInt(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static long getLong(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static float getFloat(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static double getDouble(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static void set(Object array, int index, Object value) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static void setBoolean(Object array, int index, boolean z) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static void setByte(Object array, int index, byte b) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static void setChar(Object array, int index, char c) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static void setShort(Object array, int index, short s) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static void setInt(Object array, int index, int i) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static void setLong(Object array, int index, long l) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static void setFloat(Object array, int index, float f) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; @ImplementedInVM native public static void setDouble(Object array, int index, double d) throws IllegalArgumentException, ArrayIndexOutOfBoundsException; }