public class MethodAccessor
extends java.lang.Object
| Constructor and Description |
|---|
MethodAccessor() |
| Modifier and Type | Method and Description |
|---|---|
static <R> java.util.function.Function<java.lang.Object[],R> |
makeArrayInvoker(java.lang.Object instance,
java.lang.reflect.Method method)
Create a new array invoker instance for the given method.
|
static <I,R> java.util.function.BiFunction<I,java.lang.Object[],R> |
makeDynamicArrayInvoker(java.lang.reflect.Method method)
Create a new dynamic array invoker instance for the given method.
|
static <I> I |
makeDynamicInvoker(java.lang.Class<I> invokerClass,
java.lang.reflect.Method method)
Create a new dynamic invoker instance for the given method.
|
static <I> I |
makeInvoker(java.lang.Class<I> invokerClass,
java.lang.Object instance,
java.lang.reflect.Method method)
Create a new invoker instance for the given method.
|
public static <I> I makeInvoker(@Nonnull
java.lang.Class<I> invokerClass,
java.lang.Object instance,
@Nonnull
java.lang.reflect.Method method)
I - The invoker interface typeinvokerClass - The invoker interface classinstance - The instance of the class the method is inmethod - The method to invokepublic static <R> java.util.function.Function<java.lang.Object[],R> makeArrayInvoker(java.lang.Object instance,
@Nonnull
java.lang.reflect.Method method)
R - The return typeinstance - The instance of the class the method is inmethod - The method to invokepublic static <I> I makeDynamicInvoker(@Nonnull
java.lang.Class<I> invokerClass,
@Nonnull
java.lang.reflect.Method method)
I - The invoker interface typeinvokerClass - The invoker interface classmethod - The method to invokepublic static <I,R> java.util.function.BiFunction<I,java.lang.Object[],R> makeDynamicArrayInvoker(@Nonnull
java.lang.reflect.Method method)
I - The instance typeR - The return typemethod - The method to invoke