|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.MetaProperty
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)
|
static String
|
getSetterName(String propertyName)
|
Class
|
getType()
|
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, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
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)
Copyright © 2003-2009 The Codehaus. All rights reserved.