public class MetaBeanProperty extends MetaProperty
name, type
Constructor and Description |
---|
MetaBeanProperty(java.lang.String name,
java.lang.Class type,
MetaMethod getter,
MetaMethod setter) |
Modifier and Type | Method and Description |
---|---|
MetaFieldProperty |
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(MetaFieldProperty f) |
void |
setProperty(java.lang.Object object,
java.lang.Object newValue)
Set the property on the given object to the new value.
|
getName, 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.Exception
- 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(MetaFieldProperty f)
public MetaFieldProperty getField()