public class MethodMetaProperty extends MetaProperty
Modifier and Type | Class and Description |
---|---|
static class |
MethodMetaProperty.GetBeanMethodMetaProperty
Wrapper for a method realizing the property getter.
|
static class |
MethodMetaProperty.GetMethodMetaProperty
Wrapper for a method realizing the property get.
|
name, PROPERTY_SET_PREFIX, type
Constructor and Description |
---|
MethodMetaProperty(String name,
MetaMethod method) |
Modifier and Type | Method and Description |
---|---|
MetaMethod |
getMetaMethod() |
Object |
getProperty(Object object) |
void |
setProperty(Object object,
Object newValue)
Sets the property on the given object to the new value
|
getGetterName, getModifiers, getName, getSetterName, getType
public MethodMetaProperty(String name, MetaMethod method)
public Object getProperty(Object object)
getProperty
in class MetaProperty
public void setProperty(Object object, Object newValue)
MetaProperty
setProperty
in class MetaProperty
object
- on which to set the propertynewValue
- the new value of the propertypublic MetaMethod getMetaMethod()