Home
last modified time | relevance | path

Searched refs:asCollector (Results 1 – 14 of 14) sorted by relevance

/libcore/ojluni/src/test/java/lang/invoke/
DSpreadCollectTest.java114 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 …]
DJavaDocExamplesTest.java324 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 …]
DMethodHandlesAsCollectorTest.java91 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()
DRicochetTest.java152 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()
DVarargsArrayTest.java133 return MethodHandles.identity(arrayType).asCollector(arrayType, nargs); in varargsArray()
DMethodHandlesTest.java838 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/
DMethodHandle.java1176 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
DTransformers.java699 collector = currentFixedArity.asCollector(arrayType, arrayLength).asType(newType); in asTypeUncached()
/libcore/ojluni/src/lambda/java/java/lang/invoke/
DMethodHandle.java42 public MethodHandle asCollector(Class<?> arrayType, int arrayLength) { return null; } in asCollector() method in MethodHandle
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleCombinersTest.java1357 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/
DTestTableSwitch.java139 collector = collector.asCollector(Object[].class, additionalTypes.size()); in testNonVoidHandles()
/libcore/ojluni/src/test/java/lang/invoke/common/test/java/lang/invoke/lib/
DHelper.java186 return AS_LIST.asCollector(Object[].class, arity); in varargsList()
/libcore/ojluni/src/main/java/java/lang/runtime/
DObjectMethods.java283 … .asCollector(String[].class, getters.size()); // (R*)String in makeToString()
/libcore/api/
Dcurrent.txt4635 method public java.lang.invoke.MethodHandle asCollector(Class<?>, int);
4636 method public java.lang.invoke.MethodHandle asCollector(int, Class<?>, int);