class ReflectiveMethodExecutor extends java.lang.Object implements MethodExecutor
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Method |
method |
private java.lang.Integer |
varargsPosition |
Constructor and Description |
---|
ReflectiveMethodExecutor(java.lang.reflect.Method method) |
Modifier and Type | Method and Description |
---|---|
TypedValue |
execute(EvaluationContext context,
java.lang.Object target,
java.lang.Object... arguments)
Execute a command using the specified arguments, and using the specified expression state.
|
private final java.lang.reflect.Method method
private final java.lang.Integer varargsPosition
public ReflectiveMethodExecutor(java.lang.reflect.Method method)
public TypedValue execute(EvaluationContext context, java.lang.Object target, java.lang.Object... arguments) throws AccessException
MethodExecutor
execute
in interface MethodExecutor
context
- the evaluation context in which the command is being executedtarget
- the target object of the call - null for static methodsarguments
- the arguments to the executor, should match (in terms of number
and type) whatever the command will need to runAccessException
- if there is a problem executing the command or the
MethodExecutor is no longer valid