MixinInstanceMetaProperty
, ThreadManagedMetaBeanProperty
public class MetaBeanProperty extends MetaProperty
name, PROPERTY_SET_PREFIX, type
Constructor | Description |
---|---|
MetaBeanProperty(java.lang.String name,
java.lang.Class type,
MetaMethod getter,
MetaMethod setter) |
Modifier and Type | Method | Description |
---|---|---|
CachedField |
getField() |
|
MetaMethod |
getGetter() |
Get the getter method.
|
int |
getModifiers() |
|
java.lang.Object |
getProperty(java.lang.Object object) |
Get the property of the given object.
|
MetaMethod |
getSetter() |
Get the setter method.
|
void |
setField(CachedField f) |
|
void |
setProperty(java.lang.Object object,
java.lang.Object newValue) |
Set the property on the given object to the new value.
|
getGetterName, getName, getSetterName, getType
public MetaBeanProperty(java.lang.String name, java.lang.Class type, MetaMethod getter, MetaMethod setter)
public java.lang.Object getProperty(java.lang.Object object)
getProperty
in class MetaProperty
object
- which to be gotjava.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 setpublic MetaMethod getGetter()
public MetaMethod getSetter()
public int getModifiers()
getModifiers
in class MetaProperty
public void setField(CachedField f)
public CachedField getField()