/libcore/ojluni/src/test/java/lang/invoke/ |
D | FoldTest.java | 50 static final Lookup LOOKUP = MethodHandles.lookup(); field in FoldTest 89 …MethodHandle trace = LOOKUP.findVirtual(StringWriter.class, "write", methodType(void.class, String… in testFoldArgumentsExample() 90 …MethodHandle cat = LOOKUP.findVirtual(String.class, "concat", methodType(String.class, String.clas… in testFoldArgumentsExample() 146 MH_adder = LOOKUP.findStatic(FOLD, "adder", MT_adder); 147 MH_adder1 = LOOKUP.findStatic(FOLD, "adder1", MT_adder1); 148 MH_multer = LOOKUP.findStatic(FOLD, "multer", MT_multer); 149 MH_str = LOOKUP.findStatic(FOLD, "str", MT_str); 150 MH_comb = LOOKUP.findStatic(FOLD, "comb", MT_comb); 151 MH_comb2 = LOOKUP.findStatic(FOLD, "comb2", MT_comb2);
|
D | TryFinallyTest.java | 49 static final Lookup LOOKUP = MethodHandles.lookup(); field in TryFinallyTest 254 MH_greet = LOOKUP.findStatic(TRY_FINALLY, "greet", MT_greet); 255 MH_exclaim = LOOKUP.findStatic(TRY_FINALLY, "exclaim", MT_exclaim); 256 MH_print = LOOKUP.findStatic(TRY_FINALLY, "print", MT_print); 257 MH_printMore = LOOKUP.findStatic(TRY_FINALLY, "printMore", MT_printMore); 258 MH_greetMore = LOOKUP.findStatic(TRY_FINALLY, "greetMore", MT_greetMore); 259 MH_exclaimMore = LOOKUP.findStatic(TRY_FINALLY, "exclaimMore", MT_exclaimMore); 260 MH_voidTarget = LOOKUP.findStatic(TRY_FINALLY, "voidTarget", MT_voidTarget); 261 MH_voidCleanup = LOOKUP.findStatic(TRY_FINALLY, "voidCleanup", MT_voidCleanup); 262 … MH_throwingTarget = LOOKUP.findStatic(TRY_FINALLY, "throwingTarget", MT_throwingTarget); [all …]
|
D | LoopCombinatorTest.java | 59 static final Lookup LOOKUP = MethodHandles.lookup(); field in LoopCombinatorTest 213 …MH_loop = LOOKUP.findStatic(MethodHandles.class, "loop", methodType(MethodHandle.class, MethodHand… 902 MH_f = LOOKUP.findStatic(EMPTY, "f", MT_f); 903 MH_pred = LOOKUP.findStatic(EMPTY, "pred", MT_pred); 904 MH_c = LOOKUP.findStatic(EMPTY, "c", MT_c); 960 MH_zero = LOOKUP.findStatic(FAC, "zero", MT_init); 961 MH_one = LOOKUP.findStatic(FAC, "one", MT_init); 962 MH_pred = LOOKUP.findStatic(FAC, "pred", MT_pred); 963 MH_inc = LOOKUP.findStatic(FAC, "inc", MT_fn); 964 MH_mult = LOOKUP.findStatic(FAC, "mult", MT_fn); [all …]
|
D | FilterArgumentsTest.java | 116 static final Lookup LOOKUP = MethodHandles.lookup(); field in FilterArgumentsTest 120 MH_TEST = LOOKUP.findStatic(FilterTest.class, "test", 122 MH_FILTER_A = LOOKUP.findStatic(FilterTest.class, "filterA", 124 MH_FILTER_B = LOOKUP.findStatic(FilterTest.class, "filterB", 126 MH_FILTER_C = LOOKUP.findStatic(FilterTest.class, "filterC",
|
D | JavaDocExamplesTest.java | 83 private static final Lookup LOOKUP = lookup(); field in JavaDocExamplesTest 93 Class<?> THIS_CLASS = LOOKUP.lookupClass(); 94 CONCAT_2 = LOOKUP.findVirtual(String.class, 96 HASHCODE_2 = LOOKUP.findVirtual(Object.class, 98 ADD_2 = LOOKUP.findStatic(THIS_CLASS, "add", methodType(int.class, int.class, int.class)); 99 SUB_2 = LOOKUP.findStatic(THIS_CLASS, "sub", methodType(int.class, int.class, int.class)); 112 MethodHandle CONCAT_3 = LOOKUP.findVirtual(String.class, in testMisc() 114 MethodHandle HASHCODE_3 = LOOKUP.findVirtual(Object.class, in testMisc() 698 MH_inc = LOOKUP.findStatic(THIS_CLASS, "inc", methodType(I, I, I, I)); in testLoop() 699 MH_one = LOOKUP.findStatic(THIS_CLASS, "one", methodType(I, I)); in testLoop() [all …]
|
D | SpreadCollectTest.java | 53 static final Lookup LOOKUP = MethodHandles.lookup(); field in SpreadCollectTest 65 …MethodHandle compare = LOOKUP.findStatic(Objects.class, "compare", methodType(int.class, Object.cl… in testAsSpreaderExample() 192 MethodHandle swWrite = LOOKUP. in testAsCollectorExample() 245 … MH_forSpreading = LOOKUP.findStatic(SPREAD_COLLECT, "forSpreading", MT_forSpreading); 246 … MH_forCollecting = LOOKUP.findStatic(SPREAD_COLLECT, "forCollecting", MT_forCollecting); 247 …MH_forCollectingLeading = LOOKUP.findStatic(SPREAD_COLLECT, "forCollectingLeading", MT_forCollecti…
|
D | ArrayConstructorTest.java | 44 static final MethodHandles.Lookup LOOKUP = MethodHandles.lookup(); field in ArrayConstructorTest 50 MethodHandle h = LOOKUP.findConstructor(Object[].class, methodType(void.class)); in testFindConstructorArray()
|
D | InvokeGenericTest.java | 302 static final Lookup LOOKUP = MethodHandles.lookup(); field in InvokeGenericTest 323 = LOOKUP.findStatic(LOOKUP.lookupClass(), 459 toString_MH = LOOKUP. in testReferenceConversions()
|
D | RicochetTest.java | 513 private static final Lookup LOOKUP = lookup(); field in RicochetTest 518 return LOOKUP.findStatic(LOOKUP.lookupClass(), name, methodType(rtype, ptypes)); in findStatic() 529 String qual = LOOKUP.lookupClass().getName(); in getProperty()
|