public abstract class MetaProperty extends Object
Represents a property on a bean which may have a getter and/or a setter
Modifiers | Name | Description |
---|---|---|
static String | PROPERTY_SET_PREFIX | |
protected String | name | |
protected Class | type |
Constructor and description |
---|
MetaProperty
(String name, Class type) Constructor that sets the property name and type (class) |
Type Params | Return Type | Name and description |
---|---|---|
public static String |
getGetterName(String propertyName, Class type) Gets the name for the getter for this property | |
public int |
getModifiers() Returns the access modifier. | |
public String |
getName() Return the name of the property | |
public abstract Object |
getProperty(Object object)
| |
public static String |
getSetterName(String propertyName) Gets the setter for the getter for this property. | |
public Class |
getType()
| |
public abstract void |
setProperty(Object object, Object newValue) Sets the property on the given object to the new value |
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor that sets the property name and type (class)
Gets the name for the getter for this property
Returns the access modifier.
Return the name of the property
Gets the setter for the getter for this property.
Sets the property on the given object to the new value
object
- on which to set the propertynewValue
- the new value of the property
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/lang/MetaProperty.html