public class MetaBeanProperty extends MetaProperty
name, PROPERTY_SET_PREFIX, type
Constructor and Description |
---|
MetaBeanProperty(String name,
Class type,
MetaMethod getter,
MetaMethod setter) |
Modifier and Type | Method and Description |
---|---|
CachedField |
getField() |
MetaMethod |
getGetter()
Get the getter method.
|
int |
getModifiers() |
Object |
getProperty(Object object)
Get the property of the given object.
|
MetaMethod |
getSetter()
Get the setter method.
|
void |
setField(CachedField f) |
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 f)
public CachedField getField()