/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | ExplicitCastArgumentsTest.java | 151 MethodHandle mh = explicitCastArgumentToIdentity(Child.class, Parent.class); in explicitCastArgumentParentToChild() local 160 MethodHandle mh = explicitCastArgumentToIdentity(Child.class, Parent.class); in explicitCastArgumentNullParentToChild() local 167 MethodHandle mh = explicitCastArgumentToIdentity(Parent.class, Child.class); in explicitCastArgumentChildToParent() local 174 MethodHandle mh = explicitCastArgumentToIdentity(Parent.class, Child.class); in explicitCastArgumentNullChildToParent() local 181 MethodHandle mh = explicitCastReturnValueFromIdentity(Parent.class, Child.class); in explicitCastReturnValueNullParentToChild() local 188 MethodHandle mh = explicitCastReturnValueFromIdentity(Parent.class, Child.class); in explicitCastReturnValueParentToChild() local 197 MethodHandle mh = explicitCastReturnValueFromIdentity(Child.class, Parent.class); in explicitCastReturnValueNullChildToParent() local 204 MethodHandle mh = explicitCastReturnValueFromIdentity(Child.class, Parent.class); in explicitCastReturnValueChildToParent() local 211 MethodHandle mh = explicitCastArgumentToIdentity(ParentInterface.class, Parent.class); in explicitCastArgumentOfInterfaceType_doesNotThrow() local 232 MethodHandle mh = explicitCastReturnValueFromIdentity(Parent.class, in explicitCastReturnValueOfInterfaceType_doesNotThrow() local [all …]
|
D | MethodHandlesTest.java | 419 MethodHandle mh = MethodHandles.lookup().findSpecial(F.class /* refC */, "callInner", in testfindSpecial_invokeSuperInterfaceBehaviour() local 608 MethodHandle mh = BarImpl.lookup.findVirtual( in testfindVirtual() local 768 MethodHandle mh = MethodHandles.lookup().unreflect(publicMethod); in testUnreflects_publicMethods() local 788 MethodHandle mh = UnreflectTester.lookup.unreflectSpecial(privateMethod, in testUnreflects_privateMethods() local 821 MethodHandle mh = UnreflectTester.lookup.unreflectSpecial(overridenMethod, in testUnreflectSpecial_superCalls() local 836 MethodHandle mh = MethodHandles.lookup().unreflectConstructor(privateConstructor); in testUnreflects_constructors() local 852 MethodHandle mh = MethodHandles.lookup().unreflectGetter(publicField); in testUnreflects_publicFields() local 887 MethodHandle mh = MethodHandles.lookup().unreflectGetter(privateField); in testUnreflects_privateFields() local 926 MethodHandle mh = MethodHandles.lookup().findVirtual(String.class, in testAsType() local 968 MethodHandle mh = in testConstructors() local [all …]
|
D | MethodHandleCombinersTest.java | 1702 private static void invokeMultiThreaded(final MethodHandle mh) throws Throwable { in invokeMultiThreaded() 1741 MethodHandle mh = MethodHandles.dropArguments(delegate, 0, int.class, Object.class); in testDropInsertArgumentsMultithreaded() local 1770 private static void testTargetAndFallback_delegate(MethodHandle mh) throws Throwable { in testTargetAndFallback_delegate() 1815 MethodHandle mh = MethodHandles.lookup().findStatic( in testReferenceArrayGetterMultiThreaded() local 1824 private static void checkConstant_delegate(MethodHandle mh, double value) throws Throwable { in checkConstant_delegate() 1831 MethodHandle mh = MethodHandles.lookup().findStatic( in testConstantMultithreaded() local 1838 private static void checkIdentity_delegate(MethodHandle mh, char value) throws Throwable { in checkIdentity_delegate() 1845 MethodHandle mh = MethodHandles.lookup().findStatic( in testIdentityMultiThreaded() local 1854 private static void assertMethodHandleInvokeEquals(MethodHandle mh, int value) throws Throwable{ in assertMethodHandleInvokeEquals() 1867 MethodHandle mh = MethodHandles.lookup().findStatic( in testFilterReturnValueMultiThreaded() local [all …]
|
D | CallSitesTest.java | 48 final MethodHandle mh = methodHandleForAdd2(); in test_ConstantCallSite() local 110 final MethodHandle mh = methodHandleForAdd2(); in test_MutableCallSite() local 168 final MethodHandle mh = methodHandleForAdd2(); in test_VolatileCallSite() local
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | InvokeWithArgumentsTest.java | 49 MethodHandle mh = L.findStatic(L.lookupClass(), "arity", in testArity() local 70 MethodHandle mh = L.findStatic(L.lookupClass(), "passThrough", in testArrayNoPassThrough() local 87 MethodHandle mh = L.findStatic(L.lookupClass(), "pack", in testArrayPack() local 103 MethodHandle mh = L.findStatic(L.lookupClass(), "intArray", in testPrimitiveArrayWithNull() local 113 MethodHandle mh = L.findStatic(L.lookupClass(), "intArray", in testPrimitiveArrayWithRef() local 127 MethodHandle mh = L.findStatic(L.lookupClass(), "numberArray", in testRefArrayWithCast() local
|
D | PermuteArgsTest.java | 167 static void test(String name, MethodHandle mh) throws Throwable { in test() 197 static MethodHandle adjustArity(MethodHandle mh, int arity) { in adjustArity() 222 MethodHandle mh = lookup.unreflect(m); in findTestMH() local 235 static void testPermutations(MethodHandle mh) throws Throwable { in testPermutations() 270 static void testPermutations(MethodHandle mh, int[] perm, int start, int end, in testPermutations() 295 static void testRotations(MethodHandle mh, int[] perm, int start, int end, in testRotations() 305 static void testOnePermutation(MethodHandle mh, int[] perm, Object[] args) in testOnePermutation() 339 MethodHandle mh = findTestMH(mhName, perm); in testOnePermutation() local
|
D | FilterArgumentsTest.java | 81 final MethodHandle mh; field in FilterArgumentsTest.FilterTest 82 FilterTest(MethodHandle mh) { in FilterTest()
|
D | InvokeGenericTest.java | 306 MethodHandle mh = CALLABLES.get(params); in callable() local 336 MethodHandle mh = callable(Object.class, String.class); in testSimple() local 348 MethodHandle mh = callable(Object.class, Object.class); in testSimplePrims() local 360 MethodHandle mh = callable(Object.class, String.class); in testAlternateName() local 472 MethodHandle mh = callable(type.parameterList()); in testReferenceConversions() local 507 MethodHandle mh = callable(Object.class, int.class); in testBoxConversions() local
|
D | ConstantIdentityMHTest.java | 67 MethodHandle mh = MethodHandles.zero(null); in testZeroNPE() local
|
D | RicochetTest.java | 163 MethodHandle mh = coll.asSpreader(int[].class, nargs); in testIntSpreads() local 192 MethodHandle mh = coll.asSpreader(byte[].class, nargs); in testByteSpreads() local 221 MethodHandle mh = coll.asSpreader(long[].class, nargs); in testLongSpreads() local 257 … MethodHandle mh = collectArguments(lister, pos, int[].class, INT_COLLECTORS[collects]); in testIntCollects() local 297 … MethodHandle mh = collectArguments(lister, pos, byte[].class, BYTE_COLLECTORS[collects]); in testByteCollects() local 503 private static Object invokeWithCatch(MethodHandle mh, Object... args) throws Throwable { in invokeWithCatch() 620 private static MethodHandle i2b(MethodHandle mh) { in i2b()
|
D | ExplicitCastArgumentsTest.java | 113 MethodHandle mh = MethodHandles.publicLookup() in testVarargsCollector() local 492 private static void checkForWrongMethodTypeException(MethodHandle mh, MethodType mt) { in checkForWrongMethodTypeException()
|
D | MethodHandlesGeneralTest.java | 674 MethodHandle mh; in testAccessor() local 935 MethodHandle mh = !testSetter in testArrayElementGetterSetter() local 1405 MethodHandle mh = MethodHandles.guardWithTest(test1, target, fallback); in testGuardWithTest() local 1901 /*public*/ void testInterfaceCast(MethodHandle mh, Class<?> ctype, in testInterfaceCast() 1981 String name; MethodType mt; MethodHandle mh; in testUserClassInSignature() local
|
D | TryFinallyTest.java | 164 MethodHandle mh = MethodHandles.tryFinally(TryFinally.MH_throwingTarget, in testTryFinallyThrowableCheck() local
|
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/ |
D | VarHandleTestReflection.java | 73 MethodHandle mh = MethodHandles.lookup().unreflect( in methodHandleInvoke() local 87 MethodHandle mh = MethodHandles.lookup().unreflect( in methodInvocationFromMethodInfo() local 98 MethodHandle mh = MethodHandles.varHandleInvoker( in reflectAsFromVarHandleInvoker() local 110 MethodHandle mh = MethodHandles.publicLookup().findVirtual( in reflectAsFromFindVirtual() local
|
D | VarHandleBaseTest.java | 239 MethodHandle mh; in findVirtual() local 252 MethodHandle mh = MethodHandles.varHandleInvoker( in varHandleInvoker() local 260 MethodHandle mh = MethodHandles.varHandleExactInvoker( in varHandleExactInvoker() local 267 private static MethodHandle bind(VarHandle vh, MethodHandle mh, MethodType emt) { in bind()
|
/libcore/ojluni/src/test/java/util/Optional/ |
D | BasicInt.java | 161 MethodHandle mh = in OptionalInt_ifPresentOrElse() local 173 MethodHandle mh = in OptionalInt_isEmpty() local 185 MethodHandle mh = in OptionalInt_orElseThrow() local 199 MethodHandle mh = in OptionalInt_stream() local
|
D | BasicDouble.java | 163 MethodHandle mh = MethodHandles.lookup().findVirtual(OptionalDouble.class, in OptionalDouble_ifPresentOrElse() local 176 MethodHandle mh = in OptionalDouble_isEmpty() local 188 MethodHandle mh = in OptionalDouble_orElseThrow() local 202 MethodHandle mh = in OptionalDouble_stream() local
|
D | BasicLong.java | 163 MethodHandle mh = in OptionalLong_ifPresentOrElse() local 175 MethodHandle mh = in OptionalLong_isEmpty() local 187 MethodHandle mh = in OptionalLong_orElseThrow() local 201 MethodHandle mh = in OptionalLong_stream() local
|
D | Basic.java | 329 MethodHandle mh = in Optional_ifPresentOrElse() local 341 MethodHandle mh = MethodHandles.lookup().findVirtual(Optional.class, "isEmpty", type); in Optional_isEmpty() local 353 MethodHandle mh = MethodHandles.lookup().findVirtual(Optional.class, "or", type); in Optional_or() local 364 MethodHandle mh = in Optional_orElseThrow() local 378 MethodHandle mh = MethodHandles.lookup().findVirtual(Optional.class, "stream", type); in Optional_stream() local
|
/libcore/ojluni/src/test/java/lang/invoke/MethodHandles/ |
D | TestDropReturn.java | 46 MethodHandle mh = MethodHandles.identity(cls); in testDropReturn() local
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | GetCallerClassTest.java | 149 MethodHandle mh = lookup.findVirtual(StackWalker.class, "getCallerClass", in methodHandleGetCallerClass() local 254 MethodHandle mh = lookup.findStatic(GetCallerClassTest.class, in callMethodHandle() local 265 MethodHandle mh = lookup.findStatic(GetCallerClassTest.class, in callMethodHandleRefl() local
|
D | ReflectionFrames.java | 867 MethodHandle mh = lookup.findStatic(Caller.class, "create", in handle() local 894 MethodHandle mh = lookup.findVirtual(StackWalker.class, "getCallerClass", in handleCaller() local
|
/libcore/ojluni/src/test/java/lang/constant/ |
D | NameValidationTest.java | 54 DirectMethodHandleDesc mh = MethodHandleDesc.of(Kind.VIRTUAL, CD_String, "isEmpty", "()Z"); in testMemberNames() local
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
D | SAXParserFactoryTest.java | 261 MyHandler mh = new MyHandler(); in test_setNamespaceAwareZ() local
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | ConstantBootstraps.java | 175 MethodHandle mh; in getStaticFinal() local
|