Class MethodHandles
java.lang.Object
java.lang.invoke.MethodHandles
Deprecated
these classes are used internally for Lambda compatibility
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MethodHandlearrayElementGetter(Class<?> a) static MethodHandlearrayElementSetter(Class<?> a) static MethodHandlecatchException(MethodHandle a, Class<? extends Throwable> b, MethodHandle c) static MethodHandlecollectArguments(MethodHandle a, int b, MethodHandle c) static MethodHandlestatic MethodHandledropArguments(MethodHandle a, int b, Class<?>... c) static MethodHandledropArguments(MethodHandle a, int b, List<Class<?>> c) static MethodHandlestatic MethodHandlestatic MethodHandlefilterArguments(MethodHandle a, int b, MethodHandle... c) static MethodHandlestatic MethodHandlestatic MethodHandlestatic MethodHandlestatic MethodHandleinsertArguments(MethodHandle a, int b, Object... c) static MethodHandlestatic MethodHandles.Lookuplookup()static MethodHandlepermuteArguments(MethodHandle a, MethodType b, int... c) static MethodHandles.Lookupstatic <T> TreflectAs(Class<T> a, MethodHandle b) static MethodHandlespreadInvoker(MethodType a, int b) static MethodHandlethrowException(Class<?> a, Class<? extends Throwable> b)
-
Constructor Details
-
MethodHandles
public MethodHandles()
-
-
Method Details
-
lookup
-
publicLookup
-
reflectAs
-
arrayElementGetter
- Throws:
IllegalArgumentException
-
arrayElementSetter
- Throws:
IllegalArgumentException
-
spreadInvoker
-
exactInvoker
-
invoker
-
explicitCastArguments
-
permuteArguments
-
constant
-
identity
-
insertArguments
-
dropArguments
-
dropArguments
-
filterArguments
-
collectArguments
-
filterReturnValue
-
foldArguments
-
guardWithTest
-
catchException
public static MethodHandle catchException(MethodHandle a, Class<? extends Throwable> b, MethodHandle c) -
throwException
-