MethodExecutor that works via reflection.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private final Method | |
| private final Method | |
| private Class | |
| private final Integer |
| Access | Constructor and Description |
|---|---|
| public | ReflectiveMethodExecutor(Method
the method to invoke method)Create a new executor for the given method. |
| public | ReflectiveMethodExecutor(Method
the method to invoke method, Class<?> the target class to invoke the method on targetClass)Create a new executor for the given method. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| private Class | |
| public TypedValue | execute(EvaluationContext
the evaluation context in which the method is being executed context, Object the target of the method invocation; may be target, Object... null for
static methodsthe arguments to the method; should match (in terms of
number and type) whatever the method will need to run arguments)Implements org. |
| public final Method | |
| public Class | getPublicDeclaringClass()
Find the first public class in the method's declaring class hierarchy that declares this method. |
| argumentConversionOccurred | back to summary |
|---|---|
| private boolean argumentConversionOccurred | |
| computedPublicDeclaringClass | back to summary |
|---|---|
| private boolean computedPublicDeclaringClass | |
| methodToInvoke | back to summary |
|---|---|
| private final Method methodToInvoke | |
| originalMethod | back to summary |
|---|---|
| private final Method originalMethod | |
| publicDeclaringClass | back to summary |
|---|---|
| private Class<?> publicDeclaringClass
| |
| varargsPosition | back to summary |
|---|---|
| private final Integer varargsPosition
| |
| ReflectiveMethodExecutor | back to summary |
|---|---|
| public ReflectiveMethodExecutor(Method method) Create a new executor for the given method.
| |
| ReflectiveMethodExecutor | back to summary |
|---|---|
| public ReflectiveMethodExecutor(Method method, Class<?> targetClass) Create a new executor for the given method. | |
| didArgumentConversionOccur | back to summary |
|---|---|
| public boolean didArgumentConversionOccur() | |
| discoverPublicDeclaringClass | back to summary |
|---|---|
private Class
| |
| execute | back to summary |
|---|---|
| public TypedValue execute(EvaluationContext context, Object target, Object... arguments) throws AccessException Implements org. Doc from org. Execute a method in the specified context using the specified arguments.
| |
| getMethod | back to summary |
|---|---|
| public final Method getMethod() Return the original method that this executor has been configured for. | |
| getPublicDeclaringClass | back to summary |
|---|---|
| public Class Find the first public class in the method's declaring class hierarchy that declares this method. Sometimes the reflective method discovery logic finds a suitable method
that can easily be called via reflection but cannot be called from generated
code when compiling the expression because of visibility restrictions. For
example, if a non-public class overrides
| |