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() |
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, getType
public boolean isStatic()
public boolean isFinal()
public int getModifiers()
getModifiers
in class MetaProperty
public java.lang.Object getProperty(java.lang.Object object)
getProperty
in class MetaProperty
java.lang.RuntimeException
- if the property could not be evaluatedpublic void setProperty(java.lang.Object object, java.lang.Object newValue)
setProperty
in class MetaProperty
object
- on which to set the propertynewValue
- the new value of the propertyjava.lang.RuntimeException
- if the property could not be set