Home
last modified time | relevance | path

Searched refs:asSpreader (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/test/java/lang/invoke/
DSpreadCollectTest.java57 MethodHandle spreader = SpreadCollect.MH_forSpreading.asSpreader(1, int[].class, 3); in testAsSpreader()
66 MethodHandle compare2FromArray = compare.asSpreader(0, Object[].class, 2); in testAsSpreaderExample()
83 SpreadCollect.MH_forSpreading.asSpreader(p, Object[].class, 3); in testAsSpreaderIllegalPos()
94 MethodHandle s = h.asSpreader(String[].class, 1); in testAsSpreaderIllegalMethodType()
99 SpreadCollect.MH_forSpreading.asSpreader(null, 0); in testAsSpreaderNullArrayType()
104 SpreadCollect.MH_forSpreading.asSpreader(null, 1); in testAsSpreaderNullArrayNonZeroLength()
109 SpreadCollect.MH_forSpreading.asSpreader(1, int[].class, 6); in testAsSpreaderTooManyParams()
DRicochetTest.java163 MethodHandle mh = coll.asSpreader(int[].class, nargs); in testIntSpreads()
192 MethodHandle mh = coll.asSpreader(byte[].class, nargs); in testByteSpreads()
221 MethodHandle mh = coll.asSpreader(long[].class, nargs); in testLongSpreads()
248 … int coll = (int) collector.asSpreader(int[].class, collargs.length).invokeExact(collargs); in testIntCollects()
253 … Object expect = lister.asSpreader(int[].class, listargs.length).invokeExact(listargs); in testIntCollects()
260 Object observe = mh.asSpreader(int[].class, args.length).invokeExact(args); in testIntCollects()
288 … byte coll = (byte) collector.asSpreader(byte[].class, collargs.length).invokeExact(collargs); in testByteCollects()
293 … Object expect = lister.asSpreader(byte[].class, listargs.length).invokeExact(listargs); in testByteCollects()
300 Object observe = mh.asSpreader(byte[].class, args.length).invokeExact(args); in testByteCollects()
312 collector.asSpreader(array, collects)) in collectArguments()
DJavaDocExamplesTest.java419 MethodHandle eq2 = equals.asSpreader(Object[].class, 2); in testAsSpreader()
429 MethodHandle eq2s = equals.asSpreader(String[].class, 2); in testAsSpreader()
433 MethodHandle eq1 = equals.asSpreader(Object[].class, 1); in testAsSpreader()
437 MethodHandle eq0 = equals.asSpreader(Object[].class, 0); in testAsSpreader()
443 MethodHandle equals2 = equals.asSpreader(a, n).asCollector(a, n); in testAsSpreader()
453 MethodHandle caToString2 = caString3.asSpreader(char[].class, 2); in testAsSpreader()
943 MethodHandle compare2FromArray = compare.asSpreader(0, Object[].class, 2); in testAsSpreader2()
DVarargsArrayTest.java161 MethodHandle spreader = varargsArray.asSpreader(arrayType, nargs); in testTypedVarargsArray()
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleCombinersTest.java918 MethodHandle mhAsSpreader = delegate.asSpreader(String[].class, 0); in testSpreaders_reference()
922 mhAsSpreader = delegate.asSpreader(String[].class, 1); in testSpreaders_reference()
926 mhAsSpreader = delegate.asSpreader(String[].class, 2); in testSpreaders_reference()
930 mhAsSpreader = delegate.asSpreader(String[].class, 3); in testSpreaders_reference()
936 delegate.asSpreader(String[].class, 4); in testSpreaders_reference()
943 mhAsSpreader = delegate.asSpreader(String[].class, 3); in testSpreaders_reference()
950 mhAsSpreader = delegate.asSpreader(Object[].class, 2); in testSpreaders_reference()
954 mhAsSpreader = delegate.asSpreader(Object[].class, 2); in testSpreaders_reference()
958 mhAsSpreader = delegate.asSpreader(Object[].class, 2); in testSpreaders_reference()
969 mhAsSpreader = delegate2.asSpreader(Integer[].class, 1); in testSpreaders_reference()
[all …]
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandle.java957 public MethodHandle asSpreader(Class<?> arrayType, int arrayLength) { in asSpreader() method in MethodHandle
958 return asSpreader(type().parameterCount() - arrayLength, arrayType, arrayLength); in asSpreader()
1000 public MethodHandle asSpreader(int spreadArgPos, Class<?> arrayType, int arrayLength) { in asSpreader() method in MethodHandle
DMethodHandles.java2657 invoker = invoker.asSpreader(Object[].class, spreadArgCount); in spreadInvoker()
/libcore/api/
Dcurrent.txt4638 method public java.lang.invoke.MethodHandle asSpreader(Class<?>, int);
4639 method public java.lang.invoke.MethodHandle asSpreader(int, Class<?>, int);