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(java.lang.String name,
MetaMethod method) |
Modifier and Type | Method and Description |
---|---|
MetaMethod |
getMetaMethod() |
java.lang.Object |
getProperty(java.lang.Object object) |
void |
setProperty(java.lang.Object object,
java.lang.Object newValue)
Sets the property on the given object to the new value
|
getGetterName, getModifiers, getName, getSetterName, getType
public MethodMetaProperty(java.lang.String name, MetaMethod method)
public java.lang.Object getProperty(java.lang.Object object)
getProperty
in class MetaProperty
public void setProperty(java.lang.Object object, java.lang.Object newValue)
MetaProperty
setProperty
in class MetaProperty
object
- on which to set the propertynewValue
- the new value of the propertypublic MetaMethod getMetaMethod()