public interface MethodCallerFactory
MethodCallers for methods.| Modifier and Type | Method and Description |
|---|---|
@NotNull MethodCaller |
createFor(@NotNull java.lang.reflect.Method method)
Creates a new
MethodCaller for the specified method. |
static @NotNull MethodCallerFactory |
defaultFactory()
Returns the default
MethodCallerFactory, which uses
the method handles API to create method callers, and
KotlinFunction to call Kotlin methods. |
static @NotNull MethodCallerFactory |
kotlinFunctions()
Returns a
MethodCallerFactory that allows invocation
of Kotlin functions with their default values. |
static @NotNull MethodCallerFactory |
methodHandles()
Returns a
MethodCallerFactory that uses the new
method handles API to create method callers. |
@NotNull static @NotNull MethodCallerFactory methodHandles()
MethodCallerFactory that uses the new
method handles API to create method callers.@NotNull static @NotNull MethodCallerFactory kotlinFunctions()
MethodCallerFactory that allows invocation
of Kotlin functions with their default values.@NotNull static @NotNull MethodCallerFactory defaultFactory()
MethodCallerFactory, which uses
the method handles API to create method callers, and
KotlinFunction to call Kotlin methods.@NotNull @NotNull MethodCaller createFor(@NotNull @NotNull java.lang.reflect.Method method) throws java.lang.Throwable
MethodCaller for the specified method.method - Method to create forjava.lang.Throwable - Any exceptions during creation