Lines Matching refs:lookup

565             MethodHandles.Lookup lookup = MethodHandles.lookup();  in main()  local
570 tryAccessor(lookup.findSetter(ValueHolder.class, "m_z", boolean.class), in main()
572 tryAccessor(lookup.findGetter(ValueHolder.class, "m_z", boolean.class), in main()
575 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_z", boolean.class), in main()
577 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_z", boolean.class), in main()
585 tryAccessor(lookup.findSetter(ValueHolder.class, "m_b", byte.class), in main()
587 tryAccessor(lookup.findGetter(ValueHolder.class, "m_b", byte.class), in main()
590 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_b", byte.class), in main()
592 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_b", byte.class), in main()
600 tryAccessor(lookup.findSetter(ValueHolder.class, "m_c", char.class), in main()
602 tryAccessor(lookup.findGetter(ValueHolder.class, "m_c", char.class), in main()
605 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_c", char.class), in main()
607 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_c", char.class), in main()
615 tryAccessor(lookup.findSetter(ValueHolder.class, "m_s", short.class), in main()
617 tryAccessor(lookup.findGetter(ValueHolder.class, "m_s", short.class), in main()
620 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_s", short.class), in main()
622 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_s", short.class), in main()
630 tryAccessor(lookup.findSetter(ValueHolder.class, "m_i", int.class), in main()
632 tryAccessor(lookup.findGetter(ValueHolder.class, "m_i", int.class), in main()
635 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_i", int.class), in main()
637 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_i", int.class), in main()
645 tryAccessor(lookup.findSetter(ValueHolder.class, "m_f", float.class), in main()
647 tryAccessor(lookup.findGetter(ValueHolder.class, "m_f", float.class), in main()
650 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_f", float.class), in main()
652 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_f", float.class), in main()
660 tryAccessor(lookup.findSetter(ValueHolder.class, "m_d", double.class), in main()
662 tryAccessor(lookup.findGetter(ValueHolder.class, "m_d", double.class), in main()
665 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_d", double.class), in main()
667 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_d", double.class), in main()
675 tryAccessor(lookup.findSetter(ValueHolder.class, "m_j", long.class), in main()
677 tryAccessor(lookup.findGetter(ValueHolder.class, "m_j", long.class), in main()
680 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_j", long.class), in main()
682 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_j", long.class), in main()
689 tryAccessor(lookup.findSetter(ValueHolder.class, "m_l", String.class), in main()
691 tryAccessor(lookup.findGetter(ValueHolder.class, "m_l", String.class), in main()
694 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_l", String.class), in main()
696 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_l", String.class), in main()
711 MethodHandles.Lookup lookup = MethodHandles.lookup(); in main() local
713 MethodHandle mh = lookup.findStaticGetter(ValueHolder.class, "s_fi", int.class); in main()
718 MethodHandle mh = lookup.findStaticSetter(ValueHolder.class, "s_i", int.class); in main()
722 lookup.findStaticGetter(ValueHolder.class, "s_fi", byte.class); in main()
726 lookup.findGetter(ValueHolder.class, "s_fi", byte.class); in main()
730 lookup.findStaticSetter(ValueHolder.class, "s_fi", int.class); in main()
734 lookup.findGetter(ValueHolder.class, "m_fi", int.class); in main()
736 lookup.findGetter(ValueHolder.class, "m_fi", byte.class); in main()
740 lookup.findStaticGetter(ValueHolder.class, "m_fi", byte.class); in main()
744 lookup.findSetter(ValueHolder.class, "m_fi", int.class); in main()
754 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testStaticGetter() local
755 MethodHandle h0 = lookup.findStaticGetter(ValueHolder.class, "s_fi", int.class); in testStaticGetter()
777 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testMemberGetter() local
778 MethodHandle h0 = lookup.findGetter(ValueHolder.class, "m_fi", int.class); in testMemberGetter()
810 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testMemberSetter() local
811 MethodHandle h0 = lookup.findSetter(ValueHolder.class, "m_f", float.class); in testMemberSetter()
812 MethodHandle s0 = lookup.findSetter(ValueHolder.class, "m_s", short.class); in testMemberSetter()
871 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testStaticSetter() local
872 MethodHandle s0 = lookup.findStaticSetter(ValueHolder.class, "s_s", short.class); in testStaticSetter()
873 MethodHandle h0 = lookup.findStaticSetter(ValueHolder.class, "s_f", float.class); in testStaticSetter()
949 MethodHandles.lookup().unreflectSetter(f).invokeExact(v, 'z'); in main()
950 assertEquals('z', (char) MethodHandles.lookup().unreflectGetter(f).invokeExact(v)); in main()
951 MethodHandles.lookup().unreflectSetter(f).invokeExact(v, 'A'); in main()
952 assertEquals('A', (char) MethodHandles.lookup().unreflectGetter(f).invokeExact(v)); in main()
958 MethodHandles.lookup().unreflectSetter(f); in main()
961 MethodHandles.lookup().unreflectGetter(f); in main()
963 int savedValue = (int) MethodHandles.lookup().unreflectGetter(f).invokeExact(); in main()
965 MethodHandles.lookup().unreflectSetter(f).invokeExact(newValue); in main()
966 assertEquals(newValue, (int) MethodHandles.lookup().unreflectGetter(f).invokeExact() in main()
968 MethodHandles.lookup().unreflectSetter(f).invokeExact(savedValue); in main()
969 … assertEquals(savedValue, (int) MethodHandles.lookup().unreflectGetter(f).invokeExact() in main()
973 MethodHandles.lookup().unreflectSetter(f); in main()
976 MethodHandles.lookup().unreflectGetter(f); in main()
982 MethodHandle mh = MethodHandles.lookup().unreflectSetter(f); in main()
986 MethodHandle mh = MethodHandles.lookup().unreflectGetter(f); in main()
990 MethodHandles.lookup().unreflectSetter(f).invokeExact(v, true); in main()
991 … assertEquals(true, (boolean) MethodHandles.lookup().unreflectGetter(f).invokeExact(v) in main()
993 MethodHandles.lookup().unreflectSetter(f).invokeExact(v, false); in main()
994 … assertEquals(false, (boolean) MethodHandles.lookup().unreflectGetter(f).invokeExact(v) in main()
998 MethodHandle mh = MethodHandles.lookup().unreflectGetter(f); in main()
1002 MethodHandle mh = MethodHandles.lookup().unreflectSetter(f); in main()
1010 MethodHandles.lookup().unreflectSetter(f); in main()
1014 MethodHandles.lookup().unreflectGetter(f); in main()
1019 MethodHandles.lookup().unreflectSetter(f).invokeExact(false); in main()
1020 … assertEquals(false, (boolean) MethodHandles.lookup().unreflectGetter(f).invokeExact() in main()
1022 MethodHandles.lookup().unreflectSetter(f).invokeExact(true); in main()
1023 assertEquals(true, (boolean) MethodHandles.lookup().unreflectGetter(f).invokeExact() in main()
1027 MethodHandles.lookup().unreflectSetter(f); in main()
1031 MethodHandles.lookup().unreflectGetter(f); in main()