|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jexl2.internal.AbstractExecutor
public abstract class AbstractExecutor
Abstract class that is used to execute an arbitrary method that is introspected. This is the superclass for all other AbstractExecutor classes.
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 java.lang.reflect.Method |
method
Method to be executed. |
protected java.lang.Class<?> |
objectClass
The class this executor applies to. |
static java.lang.Object |
TRY_FAILED
A marker for invocation failures in tryInvoke. |
Constructor Summary | |
---|---|
protected |
AbstractExecutor(java.lang.Class<?> theClass,
java.lang.reflect.Method theMethod)
Default and sole constructor. |
Method Summary | |
---|---|
boolean |
equals(AbstractExecutor arg)
Indicates whether some other executor is equivalent to this one. |
boolean |
equals(java.lang.Object obj)
|
java.lang.reflect.Method |
getMethod()
Gets the method to be executed or used as a marker. |
java.lang.String |
getMethodName()
Gets the method name used. |
java.lang.Class<?> |
getTargetClass()
Gets the object class targeted by this executor. |
java.lang.Object |
getTargetProperty()
Gets the property targeted by this executor. |
int |
hashCode()
|
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(java.lang.Object exec)
Checks whether a tryExecute failed or not. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Object TRY_FAILED
protected final java.lang.Class<?> objectClass
protected final java.lang.reflect.Method method
Constructor Detail |
---|
protected AbstractExecutor(java.lang.Class<?> theClass, java.lang.reflect.Method theMethod)
theClass
- the class this executor applies totheMethod
- the method held by this executorMethod Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(AbstractExecutor arg)
arg
- the other executor to check
public final boolean isAlive()
public boolean isCacheable()
public final java.lang.reflect.Method getMethod()
public final java.lang.Class<?> getTargetClass()
public java.lang.Object getTargetProperty()
public final java.lang.String getMethodName()
public final boolean tryFailed(java.lang.Object exec)
exec
- the value returned by tryExecute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |