Top Description Fields Constructors Methods
org.codehaus.groovy.runtime.metaclass

public Class MultipleSetterProperty

extends MetaProperty
Class Inheritance
Imports
groovy.lang.GroovyRuntimeException, .MetaMethod, .MetaProperty, org.codehaus.groovy.reflection.CachedField, org.codehaus.groovy.runtime.InvokerHelper, .MetaClassHelper

This class represents a property with multiple setters. Unlike a MetaBeanProperty you cannot get the setter in this case. Instead invocation is done through the meta class of the property recevier.

Field Summary

Modifier and TypeField and Description
private CachedField
private MetaMethod
private final String
Inherited from groovy.lang.MetaProperty:
namePROPERTY_SET_PREFIXtype

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public MetaProperty
public CachedField
public MetaMethod
public Object
public void
public void
public void
setProperty(Object
on which to set the property
object
,
Object
the new value of the property
newValue
)

Implements abstract groovy.lang.MetaProperty.setProperty.

Sets the property on the given object to the new value.
Inherited from groovy.lang.MetaProperty:
getGetterNamegetModifiersgetNamegetSetterNamegetType

Field Detail

fieldback to summary
private CachedField field
getterback to summary
private MetaMethod getter
setterNameback to summary
private final String setterName

Constructor Detail

MultipleSetterPropertyback to summary
public MultipleSetterProperty(String name)

Method Detail

createStaticVersionback to summary
public MetaProperty createStaticVersion()
getFieldback to summary
public CachedField getField()
getGetterback to summary
public MetaMethod getGetter()
getPropertyback to summary
public Object getProperty(Object object)

Implements abstract groovy.lang.MetaProperty.getProperty.

Returns:Object

Doc from groovy.lang.MetaProperty.getProperty.

the property of the given object

Annotations
@Override
setFieldback to summary
public void setField(CachedField f)
setGetterback to summary
public void setGetter(MetaMethod getter)
setPropertyback to summary
public void setProperty(Object object, Object newValue)

Implements abstract groovy.lang.MetaProperty.setProperty.

Doc from groovy.lang.MetaProperty.setProperty.

Sets the property on the given object to the new value.

Parameters
object:Object

on which to set the property

newValue:Object

the new value of the property

Annotations
@Override