| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | AbstractExecutor.Get
Abstract class that is used to execute an arbitrary 'get' method. |
| public abstract static class | AbstractExecutor.Method
Abstract class that is used to execute an arbitrary method. |
| public abstract static class | AbstractExecutor.Set
Abstract class that is used to execute an arbitrary 'set' method. |
| Modifier and Type | Field and Description |
|---|---|
| protected final Method | method
Method to be executed. |
| protected final Class | objectClass
The class this executor applies to. |
| public static final Object | TRY_FAILED
A marker for invocation failures in tryInvoke. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractExecutor(Class<?>
the class this executor applies to theClass, Method the method held by this executor theMethod)Default and sole constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public boolean | Returns: true if both executors are equivalent, false otherwisethe other executor to check arg)Indicates whether some other executor is equivalent to this one. |
| public final Method | Returns: Method The method used by execute in derived classes.Gets the method to be executed or used as a marker. |
| public final String | |
| public final Class | |
| public Object | |
| public int | |
| pack-priv static Method | Returns: the methodthe class to introspect clazz, String the name of the method name, Class<?>... the parameters parms)A helper to initialize the marker methods (array.get, list.get, etc...). |
| public final boolean | Returns: boolean Whether the executor is alive.Tell whether the executor is alive by looking at the value of the method. |
| public boolean | Returns: true if can be reused for this class, false if notSpecifies if this executor is cacheable and able to be reused for this class of object it was returned for. |
| pack-priv static Object[] | |
| public final boolean |
| method | back to summary |
|---|---|
| protected final Method method Method to be executed. | |
| objectClass | back to summary |
|---|---|
| protected final Class<?> objectClass The class this executor applies to. | |
| TRY_FAILED | back to summary |
|---|---|
| public static final Object TRY_FAILED A marker for invocation failures in tryInvoke. | |
| AbstractExecutor | back to summary |
|---|---|
| protected AbstractExecutor(Class<?> theClass, Method theMethod) Default and sole constructor. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| equals | back to summary |
|---|---|
| public boolean equals(AbstractExecutor arg) Indicates whether some other executor is equivalent to this one.
| |
| getMethod | back to summary |
|---|---|
| public final Method getMethod() Gets the method to be executed or used as a marker.
| |
| getMethodName | back to summary |
|---|---|
| public final String getMethodName() Gets the method name used.
| |
| getTargetClass | back to summary |
|---|---|
| public final Class Gets the object class targeted by this executor.
| |
| getTargetProperty | back to summary |
|---|---|
| public Object getTargetProperty() Gets the property targeted by this executor.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| initMarker | back to summary |
|---|---|
| pack-priv static Method initMarker(Class<?> clazz, String name, Class<?>... parms) A helper to initialize the marker methods (array.get, list.get, etc...). | |
| isAlive | back to summary |
|---|---|
| public final boolean isAlive() Tell whether the executor is alive by looking at the value of the method.
| |
| isCacheable | back to summary |
|---|---|
| public boolean isCacheable() Specifies if this executor is cacheable and able to be reused for this class of object it was returned for.
| |
| makeArgs | back to summary |
|---|---|
| pack-priv static Object[] makeArgs(Object... args) Creates an arguments array. | |
| tryFailed | back to summary |
|---|---|
| public final boolean tryFailed(Object exec) Checks whether a tryExecute failed or not.
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Object | |
| public final Object | invoke(Object
the object to get the property value from. obj)Implements org. |
| public Object | Returns: The property value or TRY_FAILED if checking failed.The object to get the property from. obj, Object The property to get from the object. key)Tries to reuse this executor, checking that it is compatible with the actual set of arguments. |
| public final Object | tryInvoke(Object
the object to invoke the property get upon obj, Object the property key to get key)Implements org. |
| Get | back to summary |
|---|---|
| protected Get(Class<?> theClass, Method theMethod) Default and sole constructor. | |
| execute | back to summary |
|---|---|
| public abstract Object execute(Object obj) throws IllegalAccessException, InvocationTargetException Gets the property value from an object.
| |
| invoke | back to summary |
|---|---|
| public final Object invoke(Object obj) throws Exception Implements org. Doc from org. Method used to get the property value of an object. | |
| tryExecute | back to summary |
|---|---|
| public Object tryExecute(Object obj, Object key) Tries to reuse this executor, checking that it is compatible with the actual set of arguments. Compatibility means that:
| |
| tryInvoke | back to summary |
|---|---|
| public final Object tryInvoke(Object obj, Object key) Implements org. Doc from org. Attempts to reuse this JexlPropertyGet, checking that it is compatible with the actual set of arguments. | |
| Modifier and Type | Class and Description |
|---|---|
| protected static class | AbstractExecutor.Method.Parameter
A helper class to pass the method & parameters. |
| Modifier and Type | Field and Description |
|---|---|
| protected final MethodKey | key
The method key discovered from the arguments. |
| Access | Constructor and Description |
|---|---|
| protected | Method(Class<?>
the class this executor applies to c, AbstractExecutor.the method and MethodKey to encapsulate. kmCreates a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Object | |
| public final Class | Returns: return typeImplements org. |
| public Object | getTargetProperty()
Overrides org. |
| public final Object | invoke(Object
the object obj, Object[] method parameters. params)Implements org. |
| public Object | Returns: the result of the method invocation or TRY_FAILED if checking failed.the method name name, Object the object to invoke the method upon obj, Object[] the method arguments args)Tries to reuse this executor, checking that it is compatible with the actual set of arguments. |
| public final Object | tryInvoke(String
the method name name, Object the object to invoke the method upon obj, Object[] the method arguments params)Implements org. |
| key | back to summary |
|---|---|
| protected final MethodKey key The method key discovered from the arguments. | |
| Method | back to summary |
|---|---|
| protected Method(Class<?> c, AbstractExecutor. Creates a new instance.
| |
| execute | back to summary |
|---|---|
| public abstract Object execute(Object obj, Object[] args) throws IllegalAccessException, InvocationTargetException Invokes the method to be executed.
| |
| getReturnType | back to summary |
|---|---|
| public final Class Implements org. Returns the return type of the method invoked.
| |
| getTargetProperty | back to summary |
|---|---|
| public Object getTargetProperty() Overrides org. Doc from org. Gets the property targeted by this executor. | |
| invoke | back to summary |
|---|---|
| public final Object invoke(Object obj, Object[] params) throws Exception Implements org. Doc from org. Invocation method, called when the method invocation should be performed and a value returned. | |
| tryExecute | back to summary |
|---|---|
| public Object tryExecute(String name, Object obj, Object[] args) Tries to reuse this executor, checking that it is compatible with the actual set of arguments. | |
| tryInvoke | back to summary |
|---|---|
| public final Object tryInvoke(String name, Object obj, Object[] params) Implements org. Doc from org. Attempts to reuse this JexlMethod, checking that it is compatible with the actual set of arguments. Related to isCacheable since this method is often used with cached JexlMethod instances. | |
| Modifier and Type | Field and Description |
|---|---|
| private final MethodKey | key
The method key. |
| private final Method | method
The method. |
| Access | Constructor and Description |
|---|---|
| public |
| key | back to summary |
|---|---|
| private final MethodKey key The method key. | |
| method | back to summary |
|---|---|
| private final Method method The method. | |
| Parameter | back to summary |
|---|---|
| public Parameter(Method m, MethodKey k) Creates an instance. | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Object | |
| public final Object | invoke(Object
Object on which the property setter will be called with the value obj, Object value to be set arg)Implements org. |
| public Object | Returns: The return value or TRY_FAILED if checking failed.The object to invoke the method from. obj, Object The property to set in the object. key, Object The value to use as the property value. value)Tries to reuse this executor, checking that it is compatible with the actual set of arguments. |
| public final Object | 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)Implements org. |
| Set | back to summary |
|---|---|
| protected Set(Class<?> theClass, Method theMethod) Default and sole constructor. | |
| execute | back to summary |
|---|---|
| public abstract Object execute(Object obj, Object value) throws IllegalAccessException, InvocationTargetException Sets the property value of an object.
| |
| invoke | back to summary |
|---|---|
| public final Object invoke(Object obj, Object arg) throws Exception Implements org. Doc from org. Method used to set the property value of an object. | |
| tryExecute | back to summary |
|---|---|
| public Object tryExecute(Object obj, Object key, Object value) Tries to reuse this executor, checking that it is compatible with the actual set of arguments. Compatibility means that:
| |
| tryInvoke | back to summary |
|---|---|
| public final Object tryInvoke(Object obj, Object key, Object value) Implements org. Doc from org. Attempts to reuse this JexlPropertySet, checking that it is compatible with the actual set of arguments. | |