public final class Field extends AccessibleObject implements Member
Constructor and Description |
---|
Field() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
default implementation is just an identity check
|
Object |
get(Object o) |
<T extends Annotation> |
getAnnotation(Class<T> annotationCls) |
Annotation[] |
getAnnotations() |
boolean |
getBoolean(Object o) |
byte |
getByte(Object o) |
char |
getChar(Object o) |
Annotation[] |
getDeclaredAnnotations() |
Class<?> |
getDeclaringClass() |
double |
getDouble(Object o) |
float |
getFloat(Object o) |
int |
getInt(Object o) |
long |
getLong(Object o) |
int |
getModifiers() |
String |
getName() |
short |
getShort(Object o) |
Class<?> |
getType() |
int |
hashCode() |
boolean |
isEnumConstant() |
boolean |
isSynthetic() |
void |
set(Object o,
Object v) |
void |
setBoolean(Object o,
boolean v) |
void |
setByte(Object o,
byte v) |
void |
setChar(Object o,
char v) |
void |
setDouble(Object o,
double v) |
void |
setFloat(Object o,
float v) |
void |
setInt(Object o,
int val) |
void |
setLong(Object o,
long v) |
void |
setShort(Object o,
short v) |
String |
toGenericString() |
String |
toString() |
isAccessible, isAnnotationPresent, setAccessible, setAccessible
public String toGenericString()
public boolean getBoolean(Object o) throws IllegalAccessException
IllegalAccessException
public void setBoolean(Object o, boolean v) throws IllegalAccessException
IllegalAccessException
public byte getByte(Object o) throws IllegalAccessException
IllegalAccessException
public void setByte(Object o, byte v) throws IllegalAccessException
IllegalAccessException
public short getShort(Object o) throws IllegalAccessException
IllegalAccessException
public void setShort(Object o, short v) throws IllegalAccessException
IllegalAccessException
public char getChar(Object o) throws IllegalAccessException
IllegalAccessException
public void setChar(Object o, char v) throws IllegalAccessException
IllegalAccessException
public int getInt(Object o) throws IllegalAccessException
IllegalAccessException
public void setInt(Object o, int val) throws IllegalAccessException
IllegalAccessException
public long getLong(Object o) throws IllegalAccessException
IllegalAccessException
public void setLong(Object o, long v) throws IllegalAccessException
IllegalAccessException
public float getFloat(Object o) throws IllegalAccessException
IllegalAccessException
public void setFloat(Object o, float v) throws IllegalAccessException
IllegalAccessException
public double getDouble(Object o) throws IllegalAccessException
IllegalAccessException
public void setDouble(Object o, double v) throws IllegalAccessException
IllegalAccessException
public Class<?> getType()
public Object get(Object o) throws IllegalAccessException
IllegalAccessException
public void set(Object o, Object v) throws IllegalArgumentException, IllegalAccessException
public int getModifiers()
getModifiers
in interface Member
public Annotation[] getAnnotations()
getAnnotations
in class AccessibleObject
public <T extends Annotation> T getAnnotation(Class<T> annotationCls)
getAnnotation
in class AccessibleObject
public Class<?> getDeclaringClass()
getDeclaringClass
in interface Member
public boolean isSynthetic()
isSynthetic
in interface Member
public boolean equals(Object obj)
Object
public boolean isEnumConstant()
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in class AccessibleObject