|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgroovy.lang.MetaProperty
groovy.lang.MetaBeanProperty
public class MetaBeanProperty
Represents a property on a bean which may have a getter and/or a setter
| Field Summary |
|---|
| Fields inherited from class groovy.lang.MetaProperty |
|---|
name, type |
| Constructor Summary | |
|---|---|
MetaBeanProperty(String name,
Class type,
MetaMethod getter,
MetaMethod setter)
|
|
| Method Summary | |
|---|---|
protected static Object |
coercePrimitiveValue(Object src,
Class target)
Coerce the object src to the target class. |
MetaMethod |
getGetter()
Get the getter method. |
Object |
getProperty(Object object)
Get the property of the given object. |
MetaMethod |
getSetter()
Get the setter method. |
void |
setProperty(Object object,
Object newValue)
Set the property on the given object to the new value. |
| Methods inherited from class groovy.lang.MetaProperty |
|---|
getName, getType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetaBeanProperty(String name,
Class type,
MetaMethod getter,
MetaMethod setter)
| Method Detail |
|---|
public Object getProperty(Object object)
throws Exception
getProperty in class MetaPropertyobject - which to be got
Exception - if the property could not be evaluated
public void setProperty(Object object,
Object newValue)
setProperty in class MetaPropertyobject - on which to set the propertynewValue - the new value of the property
Exception - if the property could not be set
protected static Object coercePrimitiveValue(Object src,
Class target)
src to the target class.
public MetaMethod getGetter()
public MetaMethod getSetter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||