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