public class CachedField extends MetaProperty
Modifier and Type | Field and Description |
---|---|
Field |
field |
name, PROPERTY_SET_PREFIX, type
Constructor and Description |
---|
CachedField(Field field) |
Modifier and Type | Method and Description |
---|---|
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, getType
public final Field field
public CachedField(Field field)
public boolean isStatic()
public boolean isFinal()
public int getModifiers()
MetaProperty
getModifiers
in class MetaProperty
public Object getProperty(Object object)
getProperty
in class MetaProperty
RuntimeException
- if the property could not be evaluatedpublic void setProperty(Object object, Object newValue)
setProperty
in class MetaProperty
object
- on which to set the propertynewValue
- the new value of the propertyRuntimeException
- if the property could not be set