Lines Matching refs:MethodHandle
17 import java.lang.invoke.MethodHandle;
48 MethodHandle handle = MethodHandles.throwException(String.class, in testThrowException()
72 MethodHandle delegate = MethodHandles.lookup().findStatic(Main.class, in testDropArguments()
76 MethodHandle transform = MethodHandles.dropArguments(delegate, 0, int.class, Object.class); in testDropArguments()
158 MethodHandle target = MethodHandles.lookup().findStatic(Main.class, in testCatchException()
162 MethodHandle handler = MethodHandles.lookup().findStatic(Main.class, in testCatchException()
167 MethodHandle adapter = MethodHandles.catchException(target, IllegalArgumentException.class, in testCatchException()
233 MethodHandle test = MethodHandles.lookup().findStatic(Main.class, in testGuardWithTest()
240 final MethodHandle target = MethodHandles.lookup().findStatic(Main.class, in testGuardWithTest()
242 final MethodHandle fallback = MethodHandles.lookup().findStatic(Main.class, in testGuardWithTest()
245 MethodHandle adapter = MethodHandles.guardWithTest(test, target, fallback); in testGuardWithTest()
267 MethodHandle getter = MethodHandles.arrayElementGetter(int[].class); in testArrayElementGetter()
376 MethodHandle setter = MethodHandles.arrayElementSetter(int[].class); in testArrayElementSetter()
480 MethodHandle identity = MethodHandles.identity(boolean.class); in testIdentity()
488 MethodHandle identity = MethodHandles.identity(byte.class); in testIdentity()
496 MethodHandle identity = MethodHandles.identity(char.class); in testIdentity()
504 MethodHandle identity = MethodHandles.identity(short.class); in testIdentity()
512 MethodHandle identity = MethodHandles.identity(int.class); in testIdentity()
520 MethodHandle identity = MethodHandles.identity(long.class); in testIdentity()
528 MethodHandle identity = MethodHandles.identity(float.class); in testIdentity()
536 MethodHandle identity = MethodHandles.identity(double.class); in testIdentity()
544 MethodHandle identity = MethodHandles.identity(String.class); in testIdentity()
553 MethodHandle constant = MethodHandles.constant(int.class, 56); in testConstant()
609 MethodHandle constant = MethodHandles.constant(long.class, 56l); in testConstant()
624 MethodHandle constant = MethodHandles.constant(byte.class, (byte) 0x12); in testConstant()
633 MethodHandle constant = MethodHandles.constant(boolean.class, true); in testConstant()
642 MethodHandle constant = MethodHandles.constant(char.class, 'f'); in testConstant()
651 MethodHandle constant = MethodHandles.constant(short.class, (short) 123); in testConstant()
660 MethodHandle constant = MethodHandles.constant(float.class, 56.0f); in testConstant()
669 MethodHandle constant = MethodHandles.constant(double.class, 256.0); in testConstant()
678 MethodHandle constant = MethodHandles.constant(String.class, "256.0"); in testConstant()
685 MethodHandle stringCharAt = MethodHandles.lookup().findVirtual( in testBindTo()
693 MethodHandle bound = stringCharAt.bindTo("foo"); in testBindTo()
712 MethodHandle integerParseInt = MethodHandles.lookup().findStatic( in testBindTo()
748 final MethodHandle target = MethodHandles.lookup().findStatic(Main.class, in testFilterReturnValue()
750 final MethodHandle filter = MethodHandles.lookup().findStatic(Main.class, in testFilterReturnValue()
753 MethodHandle adapter = MethodHandles.filterReturnValue(target, filter); in testFilterReturnValue()
767 final MethodHandle target = MethodHandles.lookup().findStatic(Main.class, in testFilterReturnValue()
769 final MethodHandle filter = MethodHandles.lookup().findStatic(Main.class, in testFilterReturnValue()
772 MethodHandle adapter = MethodHandles.filterReturnValue(target, filter); in testFilterReturnValue()
782 final MethodHandle target = MethodHandles.lookup().findStatic(Main.class, in testFilterReturnValue()
784 final MethodHandle filter = MethodHandles.lookup().findStatic(Main.class, in testFilterReturnValue()
787 MethodHandle adapter = MethodHandles.filterReturnValue(target, filter); in testFilterReturnValue()
817 final MethodHandle target = MethodHandles.lookup().findStatic( in testPermuteArguments()
827 final MethodHandle permutation = MethodHandles.permuteArguments( in testPermuteArguments()
862 final MethodHandle target = MethodHandles.lookup().findVirtual( in testPermuteArguments()
870 MethodHandle permutation = MethodHandles.permuteArguments(target, in testPermuteArguments()
883 final MethodHandle target = MethodHandles.lookup().findStatic( in testPermuteArguments()
890 MethodHandle permutation = MethodHandles.permuteArguments(target, in testPermuteArguments()
906 final MethodHandle target = MethodHandles.lookup().findVirtual( in testInvokers()
909 MethodHandle invoker = MethodHandles.invoker(target.type()); in testInvokers()
918 MethodHandle exactInvoker = MethodHandles.exactInvoker(target.type()); in testInvokers()
945 MethodHandle delegate = MethodHandles.lookup().findStatic( in testSpreaders_reference()
951 MethodHandle mhAsSpreader = delegate.asSpreader(String[].class, 0); in testSpreaders_reference()
998 MethodHandle delegate2 = MethodHandles.lookup().findStatic( in testSpreaders_reference()
1019 MethodHandle spreadInvoker = MethodHandles.spreadInvoker(methodType2, 1); in testSpreaders_reference()
1103 MethodHandle delegate = MethodHandles.lookup().findStatic( in testSpreaders_primitive()
1106 MethodHandle spreader = delegate.asSpreader(boolean[].class, 2); in testSpreaders_primitive()
1235 MethodHandle handle = MethodHandles.lookup().findStatic( in testInvokeWithArguments()
1254 MethodHandle handle2 = MethodHandles.lookup().findStatic( in testInvokeWithArguments()
1309 MethodHandle trailingRef = MethodHandles.lookup().findStatic( in testAsCollector()
1328 MethodHandle collector = trailingRef.asCollector(String[].class, 2); in testAsCollector()
1347 MethodHandle target = MethodHandles.lookup().findStatic( in testAsCollector()
1399 MethodHandle filter1 = MethodHandles.lookup().findStatic( in testFilterArguments()
1401 MethodHandle filter2 = MethodHandles.lookup().findStatic( in testFilterArguments()
1404 MethodHandle target = MethodHandles.lookup().findStatic( in testFilterArguments()
1412 MethodHandle adapter = MethodHandles.filterArguments( in testFilterArguments()
1449 MethodHandle badFilter1 = MethodHandles.lookup().findStatic( in testFilterArguments()
1479 MethodHandle filter = MethodHandles.lookup().findStatic( in testCollectArguments()
1483 MethodHandle target = MethodHandles.lookup().findStatic( in testCollectArguments()
1488 MethodHandle adapter = MethodHandles.collectArguments(target, 0, filter); in testCollectArguments()
1539 MethodHandle target = MethodHandles.lookup().findStatic( in testInsertArguments()
1545 MethodHandle adapter = MethodHandles.insertArguments( in testInsertArguments()
1603 MethodHandle filter = MethodHandles.lookup().findStatic( in testFoldArguments()
1607 MethodHandle target = MethodHandles.lookup().findStatic( in testFoldArguments()
1613 MethodHandle adapter = MethodHandles.foldArguments(target, filter); in testFoldArguments()