/libcore/ojluni/src/test/java/lang/invoke/ |
D | SpreadCollectTest.java | 114 MethodHandle collector = SpreadCollect.MH_forCollecting.asCollector(1, int[].class, 1); in testAsCollector() 117 collector = SpreadCollect.MH_forCollecting.asCollector(1, int[].class, 2); in testAsCollector() 120 collector = SpreadCollect.MH_forCollecting.asCollector(1, int[].class, 3); in testAsCollector() 127 MethodHandle collector = SpreadCollect.MH_forCollecting.asCollector(1, int[].class, 1); in testAsCollectorInvokeWithArguments() 130 collector = SpreadCollect.MH_forCollecting.asCollector(1, int[].class, 2); in testAsCollectorInvokeWithArguments() 133 collector = SpreadCollect.MH_forCollecting.asCollector(1, int[].class, 3); in testAsCollectorInvokeWithArguments() 140 … MethodHandle collector = SpreadCollect.MH_forCollectingLeading.asCollector(0, int[].class, 1); in testAsCollectorLeading() 143 collector = SpreadCollect.MH_forCollectingLeading.asCollector(0, int[].class, 2); in testAsCollectorLeading() 146 collector = SpreadCollect.MH_forCollectingLeading.asCollector(0, int[].class, 3); in testAsCollectorLeading() 153 … MethodHandle collector = SpreadCollect.MH_forCollectingLeading.asCollector(0, int[].class, 1); in testAsCollectorLeadingInvokeWithArguments() [all …]
|
D | JavaDocExamplesTest.java | 324 MethodHandle ts1 = deepToString.asCollector(String[].class, 1); in testCollectArguments() 326 MethodHandle ts2 = deepToString.asCollector(String[].class, 2); in testCollectArguments() 328 MethodHandle ts3 = deepToString.asCollector(String[].class, 3); in testCollectArguments() 443 MethodHandle equals2 = equals.asSpreader(a, n).asCollector(a, n); in testAsSpreader() 451 MethodHandle caString3 = caToString.asCollector(char[].class, 3); in testAsSpreader() 464 MethodHandle ts1 = deepToString.asCollector(Object[].class, 1); in testAsCollector() 469 MethodHandle ts2 = deepToString.asCollector(String[].class, 2); in testAsCollector() 472 MethodHandle ts0 = deepToString.asCollector(Object[].class, 0); in testAsCollector() 475 MethodHandle ts22 = deepToString.asCollector(Object[].class, 3).asCollector(String[].class, 2); in testAsCollector() 480 .asCollector(byte[].class, 3); in testAsCollector() [all …]
|
D | MethodHandlesAsCollectorTest.java | 91 MethodHandle result = target.asCollector(Object[].class, nargs-pos).asType(newType); in testAsCollector() 142 MethodHandle result = target.asCollector(pos, Object[].class, collect).asType(newType); in testAsCollector()
|
D | RicochetTest.java | 152 MethodHandle coll = id.asCollector(int[].class, nargs); in testIntSpreads() 181 MethodHandle coll = id.asCollector(byte[].class, nargs); in testByteSpreads() 210 MethodHandle coll = id.asCollector(long[].class, nargs); in testLongSpreads() 313 .asCollector(array, collects); in collectArguments()
|
D | VarargsArrayTest.java | 133 return MethodHandles.identity(arrayType).asCollector(arrayType, nargs); in varargsArray()
|
D | MethodHandlesTest.java | 838 return MethodHandles.identity(Object[].class).asCollector(Object[].class, nargs); in varargsArray() 939 return AS_LIST.asCollector(Object[].class, nargs); in varargsList()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandle.java | 1176 public MethodHandle asCollector(Class<?> arrayType, int arrayLength) { in asCollector() method in MethodHandle 1177 return asCollector(type().parameterCount() - 1, arrayType, arrayLength); in asCollector() 1223 public MethodHandle asCollector(int collectArgPos, Class<?> arrayType, int arrayLength) { in asCollector() method in MethodHandle
|
D | Transformers.java | 699 collector = currentFixedArity.asCollector(arrayType, arrayLength).asType(newType); in asTypeUncached()
|
/libcore/ojluni/src/lambda/java/java/lang/invoke/ |
D | MethodHandle.java | 42 public MethodHandle asCollector(Class<?> arrayType, int arrayLength) { return null; } in asCollector() method in MethodHandle
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandleCombinersTest.java | 1357 trailingRef.asCollector(int[].class, 1); in testAsCollector() 1364 trailingRef.asCollector(Object[].class, 1); in testAsCollector() 1370 MethodHandle collector = trailingRef.asCollector(String[].class, 2); in testAsCollector() 1392 assertEquals(44, (int) target.asCollector(boolean[].class, 2).invoke("a", true, false)); in testAsCollector() 1396 assertEquals(45, (int) target.asCollector(byte[].class, 2).invoke("a", (byte) 1, (byte) 2)); in testAsCollector() 1400 assertEquals(46, (int) target.asCollector(char[].class, 2).invoke("a", 'a', 'b')); in testAsCollector() 1404 … assertEquals(47, (int) target.asCollector(short[].class, 2).invoke("a", (short) 3, (short) 4)); in testAsCollector() 1408 assertEquals(48, (int) target.asCollector(int[].class, 2).invoke("a", 42, 43)); in testAsCollector() 1412 assertEquals(49, (int) target.asCollector(long[].class, 2).invoke("a", 100, 99)); in testAsCollector() 1416 assertEquals(50, (int) target.asCollector(float[].class, 2).invoke("a", 8.9f, 9.1f)); in testAsCollector() [all …]
|
/libcore/ojluni/src/test/java/lang/invoke/MethodHandles/ |
D | TestTableSwitch.java | 139 collector = collector.asCollector(Object[].class, additionalTypes.size()); in testNonVoidHandles()
|
/libcore/ojluni/src/test/java/lang/invoke/common/test/java/lang/invoke/lib/ |
D | Helper.java | 186 return AS_LIST.asCollector(Object[].class, arity); in varargsList()
|
/libcore/ojluni/src/main/java/java/lang/runtime/ |
D | ObjectMethods.java | 283 … .asCollector(String[].class, getters.size()); // (R*)String in makeToString()
|
/libcore/api/ |
D | current.txt | 4635 method public java.lang.invoke.MethodHandle asCollector(Class<?>, int); 4636 method public java.lang.invoke.MethodHandle asCollector(int, Class<?>, int);
|