public class UberspectImpl.VelSetterImpl extends Object implements VelPropertySet
| Modifier and Type | Field and Description |
|---|---|
protected String |
putKey
the key for indexed and other properties.
|
protected VelMethod |
vm
the method to call.
|
| Constructor and Description |
|---|
VelSetterImpl(VelMethod velmethod)
Create an instance.
|
VelSetterImpl(VelMethod velmethod,
String key)
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMethodName()
returns the method name used to set this 'property'.
|
Object |
invoke(Object o,
Object value)
method used to set the value in the object.
|
boolean |
isCacheable()
specifies if this VelPropertySet is cacheable and able to be reused for
this class of object it was returned for.
|
protected VelMethod vm
protected String putKey
public VelSetterImpl(VelMethod velmethod)
velmethod - the method to call on set.public Object invoke(Object o, Object value) throws Exception
invoke in interface VelPropertySeto - Object on which the method will be called with the argvalue - value to be setException - on any error.public boolean isCacheable()
isCacheable in interface VelPropertySetpublic String getMethodName()
getMethodName in interface VelPropertySetCopyright © 2015 The Apache Software Foundation. All rights reserved.