@Deprecated public static final class UberspectImpl.FieldPropertySet extends java.lang.Object implements JexlPropertySet
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Field |
field
Deprecated.
The public field.
|
Constructor and Description |
---|
FieldPropertySet(java.lang.reflect.Field theField)
Deprecated.
Creates a new instance of FieldPropertySet.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(java.lang.Object obj,
java.lang.Object arg)
Deprecated.
Method used to set the property value of an object.
|
boolean |
isCacheable()
Deprecated.
Specifies if this JexlPropertySet is cacheable and able to be reused for
this class of object it was returned for.
|
boolean |
tryFailed(java.lang.Object rval)
Deprecated.
Checks whether a tryInvoke failed or not.
|
java.lang.Object |
tryInvoke(java.lang.Object obj,
java.lang.Object key,
java.lang.Object value)
Deprecated.
Attempts to reuse this JexlPropertySet, checking that it is compatible with
the actual set of arguments.
|
public FieldPropertySet(java.lang.reflect.Field theField)
theField
- the class public fieldpublic java.lang.Object invoke(java.lang.Object obj, java.lang.Object arg) throws java.lang.Exception
invoke
in interface JexlPropertySet
obj
- Object on which the property setter will be called with the valuearg
- value to be setjava.lang.Exception
- on any error.public java.lang.Object tryInvoke(java.lang.Object obj, java.lang.Object key, java.lang.Object value)
tryInvoke
in interface JexlPropertySet
obj
- the object to invoke the the get uponkey
- the property key to getvalue
- the property value to setpublic boolean tryFailed(java.lang.Object rval)
tryFailed
in interface JexlPropertySet
rval
- the value returned by tryInvokepublic boolean isCacheable()
isCacheable
in interface JexlPropertySet