|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.MetaProperty
public abstract class MetaProperty extends java.lang.Object
Represents a property on a bean which may have a getter and/or a setter
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_SET_PREFIX
|
protected java.lang.String |
name
|
protected java.lang.Class |
type
|
Constructor Summary | |
MetaProperty(java.lang.String name, java.lang.Class type)
|
Method Summary | |
---|---|
static java.lang.String
|
getGetterName(java.lang.String propertyName, java.lang.Class type)
|
int
|
getModifiers()
|
java.lang.String
|
getName()
|
java.lang.Object
|
getProperty(java.lang.Object object)
@return the property of the given object |
static java.lang.String
|
getSetterName(java.lang.String propertyName)
|
java.lang.Class
|
getType()
@return the type of the property |
void
|
setProperty(java.lang.Object object, java.lang.Object newValue)
Sets the property on the given object to the new value |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final java.lang.String PROPERTY_SET_PREFIX
protected final java.lang.String name
protected java.lang.Class type
Constructor Detail |
---|
public MetaProperty(java.lang.String name, java.lang.Class type)
Method Detail |
---|
public static java.lang.String getGetterName(java.lang.String propertyName, java.lang.Class type)
public int getModifiers()
public java.lang.String getName()
public java.lang.Object getProperty(java.lang.Object object)
public static java.lang.String getSetterName(java.lang.String propertyName)
public java.lang.Class getType()
public void setProperty(java.lang.Object object, java.lang.Object newValue)
object
- on which to set the propertynewValue
- the new value of the property
Groovy Documentation