Lines Matching refs:lookup

47     public static final Lookup lookup = MethodHandles.lookup();  field in Main.A
55 public static final Lookup lookup = MethodHandles.lookup(); field in Main.B
59 public static final Lookup lookup = MethodHandles.lookup(); field in Main.C
67 public static final Lookup lookup = MethodHandles.lookup(); field in Main.D
71 public static final Lookup lookup = MethodHandles.lookup(); field in Main.E
85 return MethodHandles.lookup(); in getLookup()
94 return MethodHandles.lookup(); in getLookup()
125 MethodHandle mh1 = B.lookup.findSpecial(A.class /* refC */, "foo", in testfindSpecial_invokeSuperBehaviour()
155 MethodHandle mh2 = C.lookup.findSpecial(A.class /* refC */, "foo", in testfindSpecial_invokeSuperBehaviour()
161 C.lookup.findSpecial(A.class, "foo", in testfindSpecial_invokeSuperBehaviour()
169 B.lookup.findSpecial(A.class /* refC */, "foo", in testfindSpecial_invokeSuperBehaviour()
175 B.lookup.findSpecial(A.class /* refC */, "<init>", in testfindSpecial_invokeSuperBehaviour()
184 MethodHandle mh3 = D.lookup.findSpecial(D.class, "privateRyan", in testfindSpecial_invokeDirectBehaviour()
191 D.lookup.findSpecial(D.class, "privateRyan", MethodType.methodType(void.class), C.class); in testfindSpecial_invokeDirectBehaviour()
198 E.lookup.findSpecial(D.class, "privateRyan", MethodType.methodType(void.class), E.class); in testfindSpecial_invokeDirectBehaviour()
205 MethodHandle handle = MethodHandles.lookup().findVirtual(String.class, "concat", in testExceptionDetailMessages()
275 static final MethodHandles.Lookup lookup = MethodHandles.lookup(); field in Main.BarImpl
281 MethodHandles.lookup().findVirtual( in testfindVirtual()
290 MethodHandles.lookup().findVirtual( in testfindVirtual()
298 MethodHandle mh = BarImpl.lookup.findVirtual( in testfindVirtual()
307 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "foo", in testfindVirtual()
316 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "foo", in testfindVirtual()
322 mh = MethodHandles.lookup().findVirtual( in testfindVirtual()
325 mh = MethodHandles.lookup().findVirtual( in testfindVirtual()
330 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "bar", in testfindVirtual()
337 mh = MethodHandles.lookup().findVirtual(Bar.class, "bar", in testfindVirtual()
344 mh = MethodHandles.lookup().findVirtual(BarAbstractSuper.class, "abstractSuperPublicMethod", in testfindVirtual()
353 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "superPublicMethod", in testfindVirtual()
360 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "superProtectedMethod", in testfindVirtual()
367 mh = MethodHandles.lookup().findVirtual(BarImpl.class, "superPackageMethod", in testfindVirtual()
375 MethodHandles.lookup().findVirtual(BarImpl.class, "<init>", in testfindVirtual()
382 MethodHandles.lookup().findStatic(BarImpl.class, "staticMethod", in testfindStatic()
385 MethodHandles.lookup().findStatic(BarImpl.class, "staticMethod", in testfindStatic()
390 MethodHandles.lookup().findStatic(BarImpl.class, "staticMethod", in testfindStatic()
395 MethodHandles.lookup().findStatic(BarImpl.class, "<clinit>", in testfindStatic()
400 MethodHandles.lookup().findStatic(BarImpl.class, "<init>", in testfindStatic()
449 MethodHandle mh = MethodHandles.lookup().unreflect(publicMethod); in testUnreflects()
454 mh = MethodHandles.lookup().unreflect(publicStaticMethod); in testUnreflects()
460 mh = MethodHandles.lookup().unreflect(privateMethod); in testUnreflects()
465 mh = MethodHandles.lookup().unreflect(privateMethod); in testUnreflects()
471 mh = MethodHandles.lookup().unreflect(privateStaticMethod); in testUnreflects()
476 mh = MethodHandles.lookup().unreflect(privateStaticMethod); in testUnreflects()
482 mh = MethodHandles.lookup().unreflectConstructor(privateConstructor); in testUnreflects()
487 mh = MethodHandles.lookup().unreflectConstructor(privateConstructor); in testUnreflects()
494 mh = MethodHandles.lookup().unreflectConstructor(publicConstructor); in testUnreflects()
504 mh = MethodHandles.lookup().unreflectGetter(publicField); in testUnreflects()
508 mh = MethodHandles.lookup().unreflectSetter(publicField); in testUnreflects()
514 mh = MethodHandles.lookup().unreflectGetter(publicStaticField); in testUnreflects()
518 mh = MethodHandles.lookup().unreflectSetter(publicStaticField); in testUnreflects()
525 mh = MethodHandles.lookup().unreflectGetter(privateField); in testUnreflects()
530 mh = MethodHandles.lookup().unreflectSetter(privateField); in testUnreflects()
537 mh = MethodHandles.lookup().unreflectGetter(privateField); in testUnreflects()
541 mh = MethodHandles.lookup().unreflectSetter(privateField); in testUnreflects()
548 mh = MethodHandles.lookup().unreflectGetter(privateStaticField); in testUnreflects()
553 mh = MethodHandles.lookup().unreflectSetter(privateStaticField); in testUnreflects()
559 mh = MethodHandles.lookup().unreflectGetter(privateStaticField); in testUnreflects()
563 mh = MethodHandles.lookup().unreflectSetter(privateStaticField); in testUnreflects()
604 MethodHandle mh = MethodHandles.lookup().findVirtual(String.class, in testAsType()
645 MethodHandle voidMH = MethodHandles.lookup().findStatic(I.class, "someVoidMethod", in testAsType()
721 MethodHandles.lookup().findConstructor(Float.class, in testConstructors()
734 mh = MethodHandles.lookup().findConstructor(Double.class, in testConstructors()
741 mh = MethodHandles.lookup().findConstructor(Double.class, in testConstructors()
750 mh = MethodHandles.lookup().findConstructor(int.class, MethodType.methodType(void.class)); in testConstructors()
756 mh = MethodHandles.lookup().findConstructor(Readable.class, in testConstructors()
762 mh = MethodHandles.lookup().findConstructor(Process.class, MethodType.methodType(void.class)); in testConstructors()
770 MethodHandle bad = MethodHandles.lookup().findConstructor( in testConstructors()
777 MethodHandle foo = MethodHandles.lookup().findConstructor( in testConstructors()
784 MethodHandle foo = MethodHandles.lookup().findConstructor( in testConstructors()
791 MethodHandle handle = MethodHandles.lookup().findConstructor( in testConstructors()
802 MethodHandle mh = MethodHandles.lookup().findConstructor( in testStringConstructors()
810 mh = MethodHandles.lookup().findConstructor( in testStringConstructors()
818 mh = MethodHandles.lookup().findConstructor( in testStringConstructors()
826 mh = MethodHandles.lookup().findConstructor( in testStringConstructors()
839 mh = MethodHandles.lookup().findConstructor( in testStringConstructors()
848 mh = MethodHandles.lookup().findConstructor( in testStringConstructors()
856 mh = MethodHandles.lookup().findConstructor( in testStringConstructors()
865 mh = MethodHandles.lookup().findConstructor( in testStringConstructors()
874 mh = MethodHandles.lookup().findConstructor( in testStringConstructors()
883 mh = MethodHandles.lookup().findConstructor( in testStringConstructors()
891 mh = MethodHandles.lookup().findConstructor( in testStringConstructors()
900 mh = MethodHandles.lookup().findConstructor( in testStringConstructors()
908 mh = MethodHandles.lookup().findConstructor( in testStringConstructors()
917 MethodHandle handle = MethodHandles.lookup().findConstructor( in testStringConstructors()
929 Lookup lookup = MethodHandles.lookup(); in testReturnValues() local
933 lookup.findVirtual(Byte.class, "byteValue", MethodType.methodType(byte.class)); in testReturnValues()
939 lookup.findStaticGetter(Character.class, "MAX_SURROGATE", char.class); in testReturnValues()
945 lookup.findStatic( in testReturnValues()
954 lookup.findStatic( in testReturnValues()
961 lookup.findStatic(Math.class, "abs", MethodType.methodType(int.class, int.class)); in testReturnValues()
967 lookup.findStatic( in testReturnValues()
979 lookup.findStatic( in testReturnValues()
988 lookup.findStatic( in testReturnValues()
995 lookup.findVirtual(Short.class, "shortValue", MethodType.methodType(short.class)); in testReturnValues()
1001 lookup.findVirtual( in testReturnValues()
1012 MethodHandle mh = MethodHandles.lookup().findStatic( in testReferenceReturnValueConversions()
1076 MethodHandle mh = MethodHandles.lookup().findStatic( in testPrimitiveReturnValueConversions()
1159 mh = MethodHandles.lookup().findStatic(System.class, "gc", MethodType.methodType(void.class)); in testPrimitiveReturnValueConversions()
1168 mh = MethodHandles.lookup().findStatic(Boolean.class, "parseBoolean", in testPrimitiveReturnValueConversions()
1186 mh = MethodHandles.lookup().findStatic(Boolean.class, "valueOf", in testPrimitiveReturnValueConversions()
1303 public static MethodHandles.Lookup lookup() { in lookup() method in Main.VariableArityTester
1304 return MethodHandles.lookup(); in lookup()
1322 mh = MethodHandles.lookup().findVirtual(VariableArityTester.class, "update", in testVariableArity()
1340 mh = MethodHandles.lookup().findVirtual(VariableArityTester.class, "update", in testVariableArity()
1352 mh = MethodHandles.lookup().findVirtual(VariableArityTester.class, "update", in testVariableArity()
1360 mh = MethodHandles.lookup().findVirtual(VariableArityTester.class, "update", in testVariableArity()
1369 mh = MethodHandles.lookup().findVirtual(VariableArityTester.class, "update", in testVariableArity()
1385 mh = MethodHandles.lookup().findVirtual(VariableArityTester.class, "update", in testVariableArity()
1394 mh = MethodHandles.lookup().findVirtual(VariableArityTester.class, "update", in testVariableArity()
1404 mh = MethodHandles.lookup().findVirtual(VariableArityTester.class, "update", in testVariableArity()
1415 mh = MethodHandles.lookup(). in testVariableArity()
1424 mh = MethodHandles.lookup(). in testVariableArity()
1460 mh = MethodHandles.lookup(). in testVariableArity()
1484 mh = MethodHandles.lookup().findVirtual( in testVariableArity()
1498 mh = MethodHandles.lookup().findConstructor( in testVariableArity()
1503 mh = MethodHandles.lookup().findConstructor( in testVariableArity()
1517 mh = MethodHandles.lookup().findConstructor( in testVariableArity()
1540 mh = MethodHandles.lookup().findConstructor( in testVariableArity()
1555 mh = MethodHandles.lookup().findConstructor( in testVariableArity()
1579 mh = MethodHandles.lookup(). in testVariableArity()
1615 mh = VariableArityTester.lookup(). in testVariableArity()
1631 mh = MethodHandles.lookup().findVirtual(VariableArityTester.class, "update", in testVariableArity()
1640 mh = MethodHandles.lookup().findStatic(VariableArityTester.class, "sumToPrimitive", in testVariableArity()
1644 mh = MethodHandles.lookup().findStatic(VariableArityTester.class, "sumToReference", in testVariableArity()
1664 mh = MethodHandles.lookup().findStatic(VariableArityTester.class, "foo", in testVariableArity()
1670 mh = MethodHandles.lookup().findVirtual(VariableArityTester.class, "update", in testVariableArity()
1691 MethodHandle mh = MethodHandles.lookup().bind(vat, "update", in testVariableArity_MethodHandles_bind()
1709 MethodHandle handle = MethodHandles.lookup().findVirtual( in testRevealDirect()
1713 MethodHandleInfo info = MethodHandles.lookup().revealDirect(handle); in testRevealDirect()
1720 assertEquals(meth, info.reflectAs(Method.class, MethodHandles.lookup())); in testRevealDirect()
1732 handle = MethodHandles.lookup().findStatic(UnreflectTester.class, in testRevealDirect()
1736 info = MethodHandles.lookup().revealDirect(handle); in testRevealDirect()
1742 assertEquals(meth, info.reflectAs(Method.class, MethodHandles.lookup())); in testRevealDirect()
1747 handle = MethodHandles.lookup().findVirtual(UnreflectTester.class, in testRevealDirect()
1750 info = MethodHandles.lookup().revealDirect(handle); in testRevealDirect()
1756 assertEquals(meth, info.reflectAs(Method.class, MethodHandles.lookup())); in testRevealDirect()
1762 handle = MethodHandles.lookup().findConstructor(UnreflectTester.class, type); in testRevealDirect()
1764 info = MethodHandles.lookup().revealDirect(handle); in testRevealDirect()
1769 assertEquals(cons, info.reflectAs(Constructor.class, MethodHandles.lookup())); in testRevealDirect()
1775 handle = MethodHandles.lookup().findStaticSetter( in testRevealDirect()
1778 info = MethodHandles.lookup().revealDirect(handle); in testRevealDirect()
1783 assertEquals(field, info.reflectAs(Field.class, MethodHandles.lookup())); in testRevealDirect()
1788 handle = MethodHandles.lookup().findStaticGetter( in testRevealDirect()
1790 info = MethodHandles.lookup().revealDirect(handle); in testRevealDirect()
1792 assertEquals(field, info.reflectAs(Field.class, MethodHandles.lookup())); in testRevealDirect()
1798 handle = MethodHandles.lookup().findSetter( in testRevealDirect()
1801 info = MethodHandles.lookup().revealDirect(handle); in testRevealDirect()
1806 assertEquals(field, info.reflectAs(Field.class, MethodHandles.lookup())); in testRevealDirect()
1811 handle = MethodHandles.lookup().findGetter( in testRevealDirect()
1813 info = MethodHandles.lookup().revealDirect(handle); in testRevealDirect()
1815 assertEquals(field, info.reflectAs(Field.class, MethodHandles.lookup())); in testRevealDirect()
1824 MethodHandles.lookup().findVirtual(java.io.PrintStream.class, "println", in testReflectiveCalls()
1846 return MethodHandles.lookup() in testInterfaceSpecial()
1878 (Consumer<Object>)MethodHandles.lookup() in testInterfaceSpecial()
1891 MethodHandles.lookup() in testInterfaceSpecial()