home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / rt.jar / java / lang / reflect / Array.class (.txt) next >
Encoding:
Java Class File  |  1998-04-23  |  1.7 KB  |  57 lines

  1. package java.lang.reflect;
  2.  
  3. public final class Array {
  4.    private Array() {
  5.    }
  6.  
  7.    public static Object newInstance(Class var0, int var1) throws NegativeArraySizeException {
  8.       return newArray(var0, var1);
  9.    }
  10.  
  11.    public static Object newInstance(Class var0, int[] var1) throws IllegalArgumentException, NegativeArraySizeException {
  12.       return multiNewArray(var0, var1);
  13.    }
  14.  
  15.    public static native int getLength(Object var0) throws IllegalArgumentException;
  16.  
  17.    public static native Object get(Object var0, int var1) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  18.  
  19.    public static native boolean getBoolean(Object var0, int var1) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  20.  
  21.    public static native byte getByte(Object var0, int var1) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  22.  
  23.    public static native char getChar(Object var0, int var1) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  24.  
  25.    public static native short getShort(Object var0, int var1) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  26.  
  27.    public static native int getInt(Object var0, int var1) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  28.  
  29.    public static native long getLong(Object var0, int var1) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  30.  
  31.    public static native float getFloat(Object var0, int var1) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  32.  
  33.    public static native double getDouble(Object var0, int var1) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  34.  
  35.    public static native void set(Object var0, int var1, Object var2) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  36.  
  37.    public static native void setBoolean(Object var0, int var1, boolean var2) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  38.  
  39.    public static native void setByte(Object var0, int var1, byte var2) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  40.  
  41.    public static native void setChar(Object var0, int var1, char var2) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  42.  
  43.    public static native void setShort(Object var0, int var1, short var2) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  44.  
  45.    public static native void setInt(Object var0, int var1, int var2) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  46.  
  47.    public static native void setLong(Object var0, int var1, long var2) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  48.  
  49.    public static native void setFloat(Object var0, int var1, float var2) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  50.  
  51.    public static native void setDouble(Object var0, int var1, double var2) throws IllegalArgumentException, ArrayIndexOutOfBoundsException;
  52.  
  53.    private static native Object newArray(Class var0, int var1) throws NegativeArraySizeException;
  54.  
  55.    private static native Object multiNewArray(Class var0, int[] var1) throws IllegalArgumentException, NegativeArraySizeException;
  56. }
  57.