public class CachedField extends MetaProperty
name, PROPERTY_SET_PREFIX, type| Constructor and Description |
|---|
CachedField(Field field) |
| Modifier and Type | Method and Description |
|---|---|
Field |
getCachedField() |
Class |
getDeclaringClass() |
int |
getModifiers()
Returns the access modifier.
|
Object |
getProperty(Object object) |
boolean |
isFinal() |
boolean |
isStatic() |
void |
setProperty(Object object,
Object newValue)
Sets the property on the given object to the new value
|
getGetterName, getName, getSetterName, getTypepublic CachedField(Field field)
public boolean isStatic()
public boolean isFinal()
public int getModifiers()
MetaPropertygetModifiers in class MetaPropertypublic Object getProperty(Object object)
getProperty in class MetaPropertyRuntimeException - if the property could not be evaluatedpublic void setProperty(Object object, Object newValue)
setProperty in class MetaPropertyobject - on which to set the propertynewValue - the new value of the propertyRuntimeException - if the property could not be setpublic Class getDeclaringClass()
public Field getCachedField()