public class SimpleMethodProperty extends Object implements MethodProperty
| Constructor and Description |
|---|
SimpleMethodProperty(Method getter,
Method setter,
String name) |
| 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) |
float |
getFloat(Object holder) |
Method |
getGetter() |
int |
getInt(Object holder) |
long |
getLong(Object holder) |
String |
getName() |
Object |
getObject(Object holder) |
Object |
getRawObject(Object holder) |
Method |
getSetter() |
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 SimpleMethodProperty(Method getter, Method setter, String name)
public Method getGetter()
getGetter in interface MethodPropertypublic Method getSetter()
getSetter in interface MethodPropertypublic 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, InvocationTargetException
getBoolean in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic char getChar(Object holder) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
getChar in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic byte getByte(Object holder) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
getByte in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic short getShort(Object holder) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
getShort in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic int getInt(Object holder) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
getInt in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic long getLong(Object holder) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
getLong in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic float getFloat(Object holder) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
getFloat in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic double getDouble(Object holder) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
getDouble in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic Object getObject(Object holder) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
getObject in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic Object getRawObject(Object holder) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
getRawObject in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic void setBoolean(Object holder, boolean value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
setBoolean in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic void setChar(Object holder, char value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
setChar in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic void setByte(Object holder, byte value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
setByte in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic void setShort(Object holder, short value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
setShort in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic void setInt(Object holder, int value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
setInt in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic void setLong(Object holder, long value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
setLong in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic void setFloat(Object holder, float value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
setFloat in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic void setDouble(Object holder, double value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
setDouble in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic void setObject(Object holder, Object value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
setObject in interface PropertyIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetException