• Home
  • Raw
  • Download

Lines Matching refs:invoke

17 import java.lang.invoke.MethodHandle;
18 import java.lang.invoke.MethodHandles;
19 import java.lang.invoke.MethodHandles.Lookup;
20 import java.lang.invoke.MethodType;
21 import java.lang.invoke.WrongMethodTypeException;
58 handle.invoke(iae); in testThrowException()
86 transform.invoke(45, new Object(), "foo", 42l); in testDropArguments()
91 transform.invoke("foo", 45, new Object(), 42l); in testDropArguments()
96 transform.invoke("foo", 42l, 45, new Object()); in testDropArguments()
101 transform.invoke("foo", 42l, 45l, new Object()); in testDropArguments()
174 returnVal = (String) adapter.invoke("foo", 42, null); in testCatchException()
181 returnVal = (String) adapter.invoke("foo", 42, "exceptionMessage"); in testCatchException()
192 returnVal = (String) adapter.invoke("foo", 42, "exceptionMessage"); in testCatchException()
204 returnVal = (String) adapter.invoke("foo", 42, "exceptionMessage"); in testCatchException()
249 returnVal = (String) adapter.invoke("target", 42, 56); in testGuardWithTest()
254 returnVal = (String) adapter.invoke("fallback", 42l, 56); in testGuardWithTest()
272 int value = (int) getter.invoke(array, 0); in testArrayElementGetter()
278 value = (int) getter.invoke(array, -1); in testArrayElementGetter()
284 value = (int) getter.invoke(null, -1); in testArrayElementGetter()
294 long value = (long) getter.invoke(array, 0); in testArrayElementGetter()
304 short value = (short) getter.invoke(array, 0); in testArrayElementGetter()
314 char value = (char) getter.invoke(array, 0); in testArrayElementGetter()
324 byte value = (byte) getter.invoke(array, 0); in testArrayElementGetter()
334 boolean value = (boolean) getter.invoke(array, 0); in testArrayElementGetter()
344 float value = (float) getter.invoke(array, 0); in testArrayElementGetter()
354 double value = (double) getter.invoke(array, 0); in testArrayElementGetter()
366 String value = (String) getter.invoke(array, 0); in testArrayElementGetter()
368 value = (String) getter.invoke(array, 1); in testArrayElementGetter()
370 value = (String) getter.invoke(array, 2); in testArrayElementGetter()
380 setter.invoke(array, 0, 42); in testArrayElementSetter()
381 setter.invoke(array, 1, 43); in testArrayElementSetter()
391 setter.invoke(array, -1, 42); in testArrayElementSetter()
397 setter.invoke(null, 0, 42); in testArrayElementSetter()
406 setter.invoke(array, 0, 42l); in testArrayElementSetter()
415 setter.invoke(array, 0, (short) 42); in testArrayElementSetter()
424 setter.invoke(array, 0, (char) 42); in testArrayElementSetter()
433 setter.invoke(array, 0, (byte) 0x8); in testArrayElementSetter()
442 setter.invoke(array, 0, true); in testArrayElementSetter()
451 setter.invoke(array, 0, 42.0f); in testArrayElementSetter()
460 setter.invoke(array, 0, 42.0); in testArrayElementSetter()
469 setter.invoke(array, 0, "42"); in testArrayElementSetter()
470 setter.invoke(array, 1, "48"); in testArrayElementSetter()
471 setter.invoke(array, 2, "54"); in testArrayElementSetter()
481 boolean value = (boolean) identity.invoke(false); in testIdentity()
489 byte value = (byte) identity.invoke((byte) 0x8); in testIdentity()
497 char value = (char) identity.invoke((char) -56); in testIdentity()
505 short value = (short) identity.invoke((short) -59); in testIdentity()
513 int value = (int) identity.invoke(52); in testIdentity()
521 long value = (long) identity.invoke(-76l); in testIdentity()
529 float value = (float) identity.invoke(56.0f); in testIdentity()
537 double value = (double) identity.invoke((double) 72.0); in testIdentity()
545 String value = (String) identity.invoke("bazman"); in testIdentity()
554 int value = (int) constant.invoke(); in testConstant()
561 value = (int) constant.invoke(); in testConstant()
568 value = (int) constant.invoke(); in testConstant()
575 value = (int) constant.invoke(); in testConstant()
610 long value = (long) constant.invoke(); in testConstant()
616 value = (long) constant.invoke(); in testConstant()
625 byte value = (byte) constant.invoke(); in testConstant()
634 boolean value = (boolean) constant.invoke(); in testConstant()
643 char value = (char) constant.invoke(); in testConstant()
652 short value = (short) constant.invoke(); in testConstant()
661 float value = (float) constant.invoke(); in testConstant()
670 double value = (double) constant.invoke(); in testConstant()
679 String value = (String) constant.invoke(); in testConstant()
688 char value = (char) stringCharAt.invoke("foo", 0); in testBindTo()
694 value = (char) bound.invoke(0); in testBindTo()
707 bound.invoke(0); in testBindTo()
716 int intValue = (int) bound.invoke(); in testBindTo()
755 boolean value = (boolean) adapter.invoke((int) 42); in testFilterReturnValue()
759 value = (boolean) adapter.invoke((int) 43); in testFilterReturnValue()
774 int value = (int) adapter.invoke("56"); in testFilterReturnValue()
789 int value = (int) adapter.invoke(); in testFilterReturnValue()
830 permutation.invoke((double) 97.0, (float) 98.0f, (long) 97, 78, in testPermuteArguments()
868 assertEquals("foobar", (String) target.invoke("foo", "bar")); in testPermuteArguments()
872 assertEquals("barfoo", (String) permutation.invoke("foo", "bar")); in testPermuteArguments()
875 assertEquals("foofoo", (String) permutation.invoke("foo", "bar")); in testPermuteArguments()
878 assertEquals("barbar", (String) permutation.invoke("foo", "bar")); in testPermuteArguments()
893 permutation.invoke(42, true); in testPermuteArguments()
894 permutation.invoke(42, Boolean.TRUE); in testPermuteArguments()
895 permutation.invoke(Integer.valueOf(42), true); in testPermuteArguments()
896 permutation.invoke(Integer.valueOf(42), Boolean.TRUE); in testPermuteArguments()
910 assertEquals("barbar", (String) invoker.invoke(target, "bar", "bar")); in testInvokers()
911 assertEquals("barbar", (String) invoker.invoke(target, (Object) returnBar(), "bar")); in testInvokers()
913 String foo = (String) invoker.invoke(target, "bar", "bar", 24); in testInvokers()
919 assertEquals("barbar", (String) exactInvoker.invoke(target, "bar", "bar")); in testInvokers()
921 String foo = (String) exactInvoker.invoke(target, (Object) returnBar(), "bar"); in testInvokers()
926 String foo = (String) exactInvoker.invoke(target, "bar", "bar", 24); in testInvokers()
952 int ret = (int) mhAsSpreader.invoke("a", "b", "c", new String[] {}); in testSpreaders_reference()
956 ret = (int) mhAsSpreader.invoke("a", "b", new String[] { "c" }); in testSpreaders_reference()
960 ret = (int) mhAsSpreader.invoke("a", new String[] { "b", "c" }); in testSpreaders_reference()
964 ret = (int) mhAsSpreader.invoke(new String[] { "a", "b", "c"}); in testSpreaders_reference()
978 ret = (int) mhAsSpreader.invoke(new String[] { "a", "b"}); in testSpreaders_reference()
984 ret = (int) mhAsSpreader.invoke("a", new String[] { "b", "c" }); in testSpreaders_reference()
988 ret = (int) mhAsSpreader.invoke("a", new Object[] { "b", "c" }); in testSpreaders_reference()
992 ret = (int) mhAsSpreader.invoke("a", (Object) new Object[] { "b", "c" }); in testSpreaders_reference()
1003 ret = (int) mhAsSpreader.invoke("a", new Integer[] { 43 }); in testSpreaders_reference()
1008 ret = (int) mhAsSpreader.invoke("a", new Integer[] { 43 }); in testSpreaders_reference()
1013 ret = (int) mhAsSpreader.invoke("a", new Object[] { Integer.valueOf(43)}); in testSpreaders_reference()
1020 ret = (int) spreadInvoker.invoke(delegate2, "a", new Object[] { Integer.valueOf(43)}); in testSpreaders_reference()
1023 ret = (int) spreadInvoker.invoke(delegate2, "a", new Integer[] { 43 }); in testSpreaders_reference()
1029 ret = (int) spreadInvoker.invoke(delegate, "a", "b", "c", new String[] {}); in testSpreaders_reference()
1033 ret = (int) spreadInvoker.invoke(delegate, new String[] { "a", "b", "c" }); in testSpreaders_reference()
1044 ret = (int) spreadInvoker.invoke(delegate, new Object[] { "a", "b", "c" }); in testSpreaders_reference()
1109 ret = (int) spreader.invoke("a", new boolean[] { true, false }); in testSpreaders_primitive()
1139 ret = (int) spreader.invoke("a", in testSpreaders_primitive()
1171 ret = (int) spreader.invoke("a", in testSpreaders_primitive()
1200 ret = (int) spreader.invoke("a", in testSpreaders_primitive()
1329 assertEquals(99, (int) collector.invoke("a", "b", "c")); in testAsCollector()
1333 collector.invoke("a", "b"); in testAsCollector()
1340 collector.invoke("a", "b", "c", "d"); in testAsCollector()
1350 assertEquals(44, (int) target.asCollector(boolean[].class, 2).invoke("a", true, false)); in testAsCollector()
1354 assertEquals(45, (int) target.asCollector(byte[].class, 2).invoke("a", (byte) 1, (byte) 2)); in testAsCollector()
1358 assertEquals(46, (int) target.asCollector(char[].class, 2).invoke("a", 'a', 'b')); in testAsCollector()
1362 assertEquals(47, (int) target.asCollector(short[].class, 2).invoke("a", (short) 3, (short) 4)); in testAsCollector()
1366 assertEquals(48, (int) target.asCollector(int[].class, 2).invoke("a", 42, 43)); in testAsCollector()
1370 assertEquals(49, (int) target.asCollector(long[].class, 2).invoke("a", 100, 99)); in testAsCollector()
1374 assertEquals(50, (int) target.asCollector(float[].class, 2).invoke("a", 8.9f, 9.1f)); in testAsCollector()
1378 assertEquals(51, (int) target.asCollector(double[].class, 2).invoke("a", 6.7, 7.8)); in testAsCollector()