public abstract class MethodHandles extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MethodHandles.Lookup
Deprecated.
|
Constructor and Description |
---|
MethodHandles()
Deprecated.
|
public static MethodHandles.Lookup lookup()
public static MethodHandles.Lookup publicLookup()
public static <T> T reflectAs(Class<T> a, MethodHandle b)
public static MethodHandle arrayElementGetter(Class<?> a) throws IllegalArgumentException
IllegalArgumentException
public static MethodHandle arrayElementSetter(Class<?> a) throws IllegalArgumentException
IllegalArgumentException
public static MethodHandle spreadInvoker(MethodType a, int b)
public static MethodHandle exactInvoker(MethodType a)
public static MethodHandle invoker(MethodType a)
public static MethodHandle explicitCastArguments(MethodHandle a, MethodType b)
public static MethodHandle permuteArguments(MethodHandle a, MethodType b, int... c)
public static MethodHandle constant(Class<?> a, Object b)
public static MethodHandle identity(Class<?> a)
public static MethodHandle insertArguments(MethodHandle a, int b, Object... c)
public static MethodHandle dropArguments(MethodHandle a, int b, List<Class<?>> c)
public static MethodHandle dropArguments(MethodHandle a, int b, Class<?>... c)
public static MethodHandle filterArguments(MethodHandle a, int b, MethodHandle... c)
public static MethodHandle collectArguments(MethodHandle a, int b, MethodHandle c)
public static MethodHandle filterReturnValue(MethodHandle a, MethodHandle b)
public static MethodHandle foldArguments(MethodHandle a, MethodHandle b)
public static MethodHandle guardWithTest(MethodHandle a, MethodHandle b, MethodHandle c)
public static MethodHandle catchException(MethodHandle a, Class<? extends Throwable> b, MethodHandle c)
public static MethodHandle throwException(Class<?> a, Class<? extends Throwable> b)