public class SimpleFieldProperty extends Object implements FieldProperty
| Constructor and Description |
|---|
SimpleFieldProperty(Field field) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getBoolean(Object holder) |
byte |
getByte(Object holder) |
char |
getChar(Object holder) |
double |
getDouble(Object holder) |
Field |
getField() |
float |
getFloat(Object holder) |
int |
getInt(Object holder) |
long |
getLong(Object holder) |
String |
getName() |
Object |
getObject(Object holder) |
Object |
getRawObject(Object holder) |
short |
getShort(Object holder) |
Class<?> |
getType() |
int |
hashCode() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
boolean |
isReadable() |
boolean |
isWritable() |
void |
setBoolean(Object holder,
boolean value) |
void |
setByte(Object holder,
byte value) |
void |
setChar(Object holder,
char value) |
void |
setDouble(Object holder,
double value) |
void |
setFloat(Object holder,
float value) |
void |
setInt(Object holder,
int value) |
void |
setLong(Object holder,
long value) |
void |
setObject(Object holder,
Object value) |
void |
setShort(Object holder,
short value) |
String |
toString() |
public SimpleFieldProperty(Field field)
public Field getField()
getField in interface FieldPropertypublic boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent in interface Propertypublic boolean isReadable()
isReadable in interface Propertypublic boolean isWritable()
isWritable in interface Propertypublic boolean getBoolean(Object holder) throws IllegalArgumentException, IllegalAccessException
getBoolean in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic char getChar(Object holder) throws IllegalArgumentException, IllegalAccessException
getChar in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic byte getByte(Object holder) throws IllegalArgumentException, IllegalAccessException
getByte in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic short getShort(Object holder) throws IllegalArgumentException, IllegalAccessException
getShort in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic int getInt(Object holder) throws IllegalArgumentException, IllegalAccessException
getInt in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic long getLong(Object holder) throws IllegalArgumentException, IllegalAccessException
getLong in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic float getFloat(Object holder) throws IllegalArgumentException, IllegalAccessException
getFloat in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic double getDouble(Object holder) throws IllegalArgumentException, IllegalAccessException
getDouble in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic Object getObject(Object holder) throws IllegalArgumentException, IllegalAccessException
getObject in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic Object getRawObject(Object holder) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
getRawObject in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic void setBoolean(Object holder, boolean value) throws IllegalArgumentException, IllegalAccessException
setBoolean in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic void setChar(Object holder, char value) throws IllegalArgumentException, IllegalAccessException
setChar in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic void setByte(Object holder, byte value) throws IllegalArgumentException, IllegalAccessException
setByte in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic void setShort(Object holder, short value) throws IllegalArgumentException, IllegalAccessException
setShort in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic void setInt(Object holder, int value) throws IllegalArgumentException, IllegalAccessException
setInt in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic void setLong(Object holder, long value) throws IllegalArgumentException, IllegalAccessException
setLong in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic void setFloat(Object holder, float value) throws IllegalArgumentException, IllegalAccessException
setFloat in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic void setDouble(Object holder, double value) throws IllegalArgumentException, IllegalAccessException
setDouble in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionpublic void setObject(Object holder, Object value) throws IllegalArgumentException, IllegalAccessException
setObject in interface PropertyIllegalArgumentExceptionIllegalAccessException