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