public class CachedField extends MetaProperty
Modifier and Type | Field and Description |
---|---|
java.lang.reflect.Field |
field |
name, type
Constructor and Description |
---|
CachedField(CachedClass clazz,
java.lang.reflect.Field field) |
Modifier and Type | Method and Description |
---|---|
int |
getModifiers() |
java.lang.Object |
getProperty(java.lang.Object object) |
boolean |
isStatic() |
void |
setProperty(java.lang.Object object,
java.lang.Object newValue)
Sets the property on the given object to the new value
|
getName, getType
public CachedField(CachedClass clazz, java.lang.reflect.Field field)
public boolean isStatic()
public int getModifiers()
getModifiers
in class MetaProperty
public java.lang.Object getProperty(java.lang.Object object)
getProperty
in class MetaProperty
java.lang.Exception
- 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