MixinInstanceMetaProperty
, ThreadManagedMetaBeanProperty
public class MetaBeanProperty extends MetaProperty
name, PROPERTY_SET_PREFIX, type
Constructor | Description |
---|---|
MetaBeanProperty(String name,
Class type,
MetaMethod getter,
MetaMethod setter) |
Sole constructor setting name, type (class), getter and setter.
|
Modifier and Type | Method | Description |
---|---|---|
CachedField |
getField() |
Gets the field of this property
|
MetaMethod |
getGetter() |
Get the getter method.
|
int |
getModifiers() |
Gets the visibility modifiers for the property as defined by the getter and setter methods.
|
Object |
getProperty(Object object) |
Get the property of the given object.
|
MetaMethod |
getSetter() |
Get the setter method.
|
void |
setField(CachedField field) |
Sets the field of this property
|
void |
setProperty(Object object,
Object newValue) |
Set the property on the given object to the new value.
|
getGetterName, getName, getSetterName, getType
public MetaBeanProperty(String name, Class type, MetaMethod getter, MetaMethod setter)
public Object getProperty(Object object)
getProperty
in class MetaProperty
object
- which to be gotRuntimeException
- 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 setpublic MetaMethod getGetter()
public MetaMethod getSetter()
public int getModifiers()
getModifiers
in class MetaProperty
public void setField(CachedField field)
field
- public CachedField getField()