Top Description Methods
org.apache.commons.jexl2.introspection

public Interface JexlPropertySet

Known Direct Implementers
org.apache.commons.jexl2.introspection.UberspectImpl.FieldPropertySet, org.apache.commons.jexl2.internal.AbstractExecutor.Set

Interface used for setting values that appear to be properties. Ex. ${foo.bar = "hello"}
Since
1.0

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the value returned from the set operation (impl specific)
invoke
(Object
Object on which the property setter will be called with the value
obj
,
Object
value to be set
arg
)

Method used to set the property value of an object.

public boolean

Returns:

true if can be reused for this class, false if not
isCacheable
()

Specifies if this JexlPropertySet is cacheable and able to be reused for this class of object it was returned for.

public boolean

Returns:

true if tryInvoke failed, false otherwise
tryFailed
(Object
the value returned by tryInvoke
rval
)

Checks whether a tryInvoke failed or not.

public Object

Returns:

the result of the method invocation that should be checked by tryFailed to determine if it succeeded or failed.
tryInvoke
(Object
the object to invoke the the get upon
obj
,
Object
the property key to get
key
,
Object
the property value to set
value
)

Attempts to reuse this JexlPropertySet, checking that it is compatible with the actual set of arguments.

Method Detail

invokeback to summary
public Object invoke(Object obj, Object arg) throws Exception

Method used to set the property value of an object.

Parameters
obj:Object

Object on which the property setter will be called with the value

arg:Object

value to be set

Returns:Object

the value returned from the set operation (impl specific)

Exceptions
Exception:
on any error.
isCacheableback to summary
public boolean isCacheable()

Specifies if this JexlPropertySet is cacheable and able to be reused for this class of object it was returned for.

Returns:boolean

true if can be reused for this class, false if not

tryFailedback to summary
public boolean tryFailed(Object rval)

Checks whether a tryInvoke failed or not.

Parameters
rval:Object

the value returned by tryInvoke

Returns:boolean

true if tryInvoke failed, false otherwise

tryInvokeback to summary
public Object tryInvoke(Object obj, Object key, Object value)

Attempts to reuse this JexlPropertySet, checking that it is compatible with the actual set of arguments.

Parameters
obj:Object

the object to invoke the the get upon

key:Object

the property key to get

value:Object

the property value to set

Returns:Object

the result of the method invocation that should be checked by tryFailed to determine if it succeeded or failed.