Searched refs:asType (Results 1 – 2 of 2) sorted by relevance
/art/test/956-methodhandles/src/ |
D | Main.java | 608 MethodHandle asType = mh.asType( in testAsType() local 611 Object obj = asType.invokeExact((CharSequence) getSequence(), "bar"); in testAsType() 616 String str = (String) asType.invokeExact((CharSequence) getSequence(), "bar"); in testAsType() 623 String str = (String) asType.invokeExact("baz", "bar"); in testAsType() 632 mh.asType(MethodType.methodType(int.class, String.class, String.class)); in testAsType() 639 mh.asType(MethodType.methodType(String.class, int.class, String.class)); in testAsType() 648 MethodHandle booleanMH = voidMH.asType(MethodType.methodType(boolean.class)); in testAsType() 653 MethodHandle intMH = voidMH.asType(MethodType.methodType(int.class)); in testAsType() 658 MethodHandle longMH = voidMH.asType(MethodType.methodType(long.class)); in testAsType() 663 MethodHandle objMH = voidMH.asType(MethodType.methodType(Object.class)); in testAsType() [all …]
|
/art/test/957-methodhandle-transforms/src/ |
D | Main.java | 111 transform = transform.asType(MethodType.methodType(void.class, in testDropArguments() 212 adapter = adapter.asType(MethodType.methodType(String.class, in testCatchException() 260 adapter = adapter.asType(MethodType.methodType(String.class, in testGuardWithTest()
|