/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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 java.lang.annotation.Annotation; public final class Field extends AccessibleObject implements Member { native public Class getDeclaringClass(); native public String getName(); native public int getModifiers(); native public boolean isEnumConstant(); native public boolean isSynthetic(); native public Class getType(); native public Type getGenericType(); native public boolean equals(Object obj); native public int hashCode(); native public String toString(); native public String toGenericString(); native public Object get(Object obj) throws IllegalArgumentException, IllegalAccessException; native public boolean getBoolean(Object obj) throws IllegalArgumentException, IllegalAccessException; native public byte getByte(Object obj) throws IllegalArgumentException, IllegalAccessException; native public char getChar(Object obj) throws IllegalArgumentException, IllegalAccessException; native public short getShort(Object obj) throws IllegalArgumentException, IllegalAccessException; native public int getInt(Object obj) throws IllegalArgumentException, IllegalAccessException; native public long getLong(Object obj) throws IllegalArgumentException, IllegalAccessException; native public float getFloat(Object obj) throws IllegalArgumentException, IllegalAccessException; native public double getDouble(Object obj) throws IllegalArgumentException, IllegalAccessException; native public void set(Object obj, Object value) throws IllegalArgumentException, IllegalAccessException; native public void setBoolean(Object obj, boolean z) throws IllegalArgumentException, IllegalAccessException; native public void setByte(Object obj, byte b) throws IllegalArgumentException, IllegalAccessException; native public void setChar(Object obj, char c) throws IllegalArgumentException, IllegalAccessException; native public void setShort(Object obj, short s) throws IllegalArgumentException, IllegalAccessException; native public void setInt(Object obj, int i) throws IllegalArgumentException, IllegalAccessException; native public void setLong(Object obj, long l) throws IllegalArgumentException, IllegalAccessException; native public void setFloat(Object obj, float f) throws IllegalArgumentException, IllegalAccessException; native public void setDouble(Object obj, double d) throws IllegalArgumentException, IllegalAccessException; native public T getAnnotation( Class annotationClass); native public Annotation[] getDeclaredAnnotations(); private Field() { } }