|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jexl3.internal.introspection.AbstractExecutor.Set
org.apache.commons.jexl3.internal.introspection.ListSetExecutor
public final class ListSetExecutor
Specialized executor to set a property in a List or array.
Nested Class Summary | |
---|---|
static class |
AbstractExecutor.Get
Abstract class that is used to execute an arbitrary 'get' method. |
static class |
AbstractExecutor.Method
Abstract class that is used to execute an arbitrary method. |
static class |
AbstractExecutor.Set
Abstract class that is used to execute an arbitrary 'set' method. |
Field Summary | |
---|---|
protected Method |
method
Method to be executed. |
protected Class<?> |
objectClass
The class this executor applies to. |
static Object |
TRY_FAILED
A marker for invocation failures in tryInvoke. |
Method Summary | |
---|---|
static ListSetExecutor |
discover(Introspector is,
Class<?> clazz,
Object identifier,
Object value)
Attempts to discover a ListSetExecutor. |
boolean |
equals(org.apache.commons.jexl3.internal.introspection.AbstractExecutor arg)
Indicates whether some other executor is equivalent to this one. |
boolean |
equals(Object obj)
|
Method |
getMethod()
Gets the method to be executed or used as a marker. |
String |
getMethodName()
Gets the method name used. |
Class<?> |
getTargetClass()
Gets the object class targeted by this executor. |
Object |
getTargetProperty()
Gets the property targeted by this executor. |
int |
hashCode()
|
Object |
invoke(Object obj,
Object value)
Method used to set the property value of an object. |
boolean |
isAlive()
Tell whether the executor is alive by looking at the value of the method. |
boolean |
isCacheable()
Specifies if this executor is cacheable and able to be reused for this class of object it was returned for. |
boolean |
tryFailed(Object exec)
Checks whether a tryExecute failed or not. |
Object |
tryInvoke(Object obj,
Object key,
Object value)
Attempts to reuse this JexlPropertySet, checking that it is compatible with the actual set of arguments. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.jexl3.introspection.JexlPropertySet |
---|
isCacheable, tryFailed |
Field Detail |
---|
public static final Object TRY_FAILED
protected final Class<?> objectClass
protected final Method method
Method Detail |
---|
public static ListSetExecutor discover(Introspector is, Class<?> clazz, Object identifier, Object value)
is
- the introspectorclazz
- the class to find the get method fromidentifier
- the key to use as an argument to the get methodvalue
- the value to use as argument in list.put(key,value)
public Object getTargetProperty()
public Object invoke(Object obj, Object value)
JexlPropertySet
obj
- Object on which the property setter will be called with the valuevalue
- value to be set
public Object tryInvoke(Object obj, Object key, Object value)
JexlPropertySet
obj
- the object to invoke the the get uponkey
- the property key to getvalue
- the property value to set
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(org.apache.commons.jexl3.internal.introspection.AbstractExecutor arg)
arg
- the other executor to check
public final boolean isAlive()
public boolean isCacheable()
public final Method getMethod()
public final Class<?> getTargetClass()
public final String getMethodName()
public final boolean tryFailed(Object exec)
exec
- the value returned by tryExecute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |