Class AbstractExecutor
java.lang.Object
org.apache.commons.jexl2.internal.AbstractExecutor
- Direct Known Subclasses:
AbstractExecutor.Get, AbstractExecutor.Method, AbstractExecutor.Set
Abstract class that is used to execute an arbitrary
method that is introspected. This is the superclass
for all other AbstractExecutor classes.
- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAbstract class that is used to execute an arbitrary 'get' method.static classAbstract class that is used to execute an arbitrary method.static classAbstract class that is used to execute an arbitrary 'set' method. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractExecutor(Class<?> theClass, Method theMethod) Default and sole constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanequals(AbstractExecutor arg) Indicates whether some other executor is equivalent to this one.final MethodGets the method to be executed or used as a marker.final StringGets the method name used.final Class<?> Gets the object class targeted by this executor.Gets the property targeted by this executor.inthashCode()final booleanisAlive()Tell whether the executor is alive by looking at the value of the method.booleanSpecifies if this executor is cacheable and able to be reused for this class of object it was returned for.final booleanChecks whether a tryExecute failed or not.
-
Field Details
-
TRY_FAILED
A marker for invocation failures in tryInvoke. -
objectClass
The class this executor applies to. -
method
-
-
Constructor Details
-
AbstractExecutor
Default and sole constructor.- Parameters:
theClass- the class this executor applies totheMethod- the method held by this executor
-
-
Method Details
-
equals
-
hashCode
-
equals
Indicates whether some other executor is equivalent to this one.- Parameters:
arg- the other executor to check- Returns:
- true if both executors are equivalent, false otherwise
-
isAlive
Tell whether the executor is alive by looking at the value of the method.- Returns:
- boolean Whether the executor is alive.
-
isCacheable
Specifies if this executor is cacheable and able to be reused for this class of object it was returned for.- Returns:
- true if can be reused for this class, false if not
-
getMethod
-
getTargetClass
Gets the object class targeted by this executor.- Returns:
- the target object class
-
getTargetProperty
Gets the property targeted by this executor.- Returns:
- the target property
-
getMethodName
-
tryFailed
-