Class AbstractExecutor.Method
- java.lang.Object
-
- org.apache.commons.jexl3.internal.introspection.AbstractExecutor
-
- org.apache.commons.jexl3.internal.introspection.AbstractExecutor.Method
-
- All Implemented Interfaces:
JexlMethod
- Direct Known Subclasses:
MethodExecutor
- Enclosing class:
- AbstractExecutor
public abstract static class AbstractExecutor.Method extends AbstractExecutor implements JexlMethod
Abstract class that is used to execute an arbitrary method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.jexl3.internal.introspection.AbstractExecutor
AbstractExecutor.Get, AbstractExecutor.Method, AbstractExecutor.Set
-
-
Field Summary
Fields Modifier and Type Field Description protected MethodKey
key
The method key discovered from the arguments.-
Fields inherited from class org.apache.commons.jexl3.internal.introspection.AbstractExecutor
method, objectClass, TRY_FAILED
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getReturnType()
returns the return type of the method invoked.java.lang.Object
getTargetProperty()
Gets the property targeted by this executor.-
Methods inherited from class org.apache.commons.jexl3.internal.introspection.AbstractExecutor
castInteger, castString, classOf, equals, equals, getMethod, getMethodName, getTargetClass, hashCode, initMarker, isAlive, isCacheable, makeArgs, tryFailed
-
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.JexlMethod
invoke, isCacheable, tryFailed, tryInvoke
-
-
-
-
Field Detail
-
key
protected final MethodKey key
The method key discovered from the arguments.
-
-
Constructor Detail
-
Method
protected Method(java.lang.Class<?> c, java.lang.reflect.Method m, MethodKey k)
Creates a new instance.- Parameters:
c
- the class this executor applies tom
- the methodk
- the MethodKey
-
-
Method Detail
-
getReturnType
public final java.lang.Class<?> getReturnType()
Description copied from interface:JexlMethod
returns the return type of the method invoked.- Specified by:
getReturnType
in interfaceJexlMethod
- Returns:
- return type
-
getTargetProperty
public java.lang.Object getTargetProperty()
Description copied from class:AbstractExecutor
Gets the property targeted by this executor.- Overrides:
getTargetProperty
in classAbstractExecutor
- Returns:
- the target property
-
-