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