public final class FunctionCallSupport extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
asFunctionalInterface(java.lang.invoke.MethodHandles.Lookup caller,
java.lang.Class<?> type,
java.lang.invoke.MethodHandle handle) |
static java.lang.invoke.CallSite |
bootstrap(java.lang.invoke.MethodHandles.Lookup caller,
java.lang.String name,
java.lang.invoke.MethodType type,
java.lang.Object... bsmArgs) |
static java.lang.Object |
fallback(org.eclipse.golo.runtime.FunctionCallSupport.FunctionCallSite callSite,
java.lang.Object[] args) |
static java.lang.Object |
functionalInterfaceFilter(java.lang.invoke.MethodHandles.Lookup caller,
java.lang.Class<?> type,
java.lang.Object value) |
static java.lang.invoke.MethodHandle |
insertSAMFilter(java.lang.invoke.MethodHandle handle,
java.lang.invoke.MethodHandles.Lookup caller,
java.lang.Class<?>[] types,
int startIndex) |
static java.lang.invoke.MethodHandle |
reorderArguments(java.lang.reflect.Method method,
java.lang.invoke.MethodHandle handle,
java.lang.String[] argumentNames) |
static java.lang.Object |
samFilter(java.lang.Class<?> type,
java.lang.Object value) |
public static java.lang.Object samFilter(java.lang.Class<?> type, java.lang.Object value)
public static java.lang.Object functionalInterfaceFilter(java.lang.invoke.MethodHandles.Lookup caller, java.lang.Class<?> type, java.lang.Object value) throws java.lang.Throwable
java.lang.Throwable
public static java.lang.Object asFunctionalInterface(java.lang.invoke.MethodHandles.Lookup caller, java.lang.Class<?> type, java.lang.invoke.MethodHandle handle) throws java.lang.Throwable
java.lang.Throwable
public static java.lang.invoke.CallSite bootstrap(java.lang.invoke.MethodHandles.Lookup caller, java.lang.String name, java.lang.invoke.MethodType type, java.lang.Object... bsmArgs) throws java.lang.IllegalAccessException, java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static java.lang.Object fallback(org.eclipse.golo.runtime.FunctionCallSupport.FunctionCallSite callSite, java.lang.Object[] args) throws java.lang.Throwable
java.lang.Throwable
public static java.lang.invoke.MethodHandle reorderArguments(java.lang.reflect.Method method, java.lang.invoke.MethodHandle handle, java.lang.String[] argumentNames)
public static java.lang.invoke.MethodHandle insertSAMFilter(java.lang.invoke.MethodHandle handle, java.lang.invoke.MethodHandles.Lookup caller, java.lang.Class<?>[] types, int startIndex)