public final class ReflectionUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
invokeFieldable(ExecutionContext context,
java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Object target,
java.lang.Object[] args)
Invokes a method.
|
static java.lang.Object |
invokeFieldable(ExecutionContext context,
java.lang.reflect.Method toInvoke,
java.lang.Object target,
java.lang.Object[] args)
Invokes a method.
|
public static java.lang.Object invokeFieldable(ExecutionContext context, java.lang.Class<?> clazz, java.lang.String methodName, java.lang.Object target, java.lang.Object[] args)
context - the current ExecutionContextclazz - the class to search for a methodmethodName - the name of the methodtarget - the target object (can be null in case of static invocation)args - the arguments for the methodpublic static java.lang.Object invokeFieldable(@Nonnull
ExecutionContext context,
@Nonnull
java.lang.reflect.Method toInvoke,
@Nullable
java.lang.Object target,
@Nonnull
java.lang.Object[] args)
context - the current ExecutionContexttoInvoke - the method to be invokedtarget - the target object (can be null in case of static invocation)args - the arguments for the method