public class CachedField extends MetaProperty
| Modifier and Type | Field | Description |
|---|---|---|
java.lang.reflect.Field |
field |
name, PROPERTY_SET_PREFIX, type| Constructor | Description |
|---|---|
CachedField(java.lang.reflect.Field field) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getModifiers() |
|
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()
getModifiers 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