public class MetaBeanProperty extends MetaProperty
name, PROPERTY_SET_PREFIX, type
Constructor and Description |
---|
MetaBeanProperty(java.lang.String name,
java.lang.Class type,
MetaMethod getter,
MetaMethod setter)
Sole constructor setting name, type (class), getter and setter.
|
Modifier and Type | Method and 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.
|
java.lang.Object |
getProperty(java.lang.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(java.lang.Object object,
java.lang.Object newValue)
Set the property on the given object to the new value.
|
getGetterName, getName, getSetterName, 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.RuntimeException
- 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(CachedField field)
field
- public CachedField getField()