Lines Matching refs:ValueHolder
23 public static class ValueHolder { class in Main
101 static void setByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in setByte()
122 static void getByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in getByte()
144 static void setChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in setChar()
165 static void getChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in getChar()
187 static void setShort(MethodHandle m, ValueHolder v, short value, boolean expectFailure) in setShort()
208 static void getShort(MethodHandle m, ValueHolder v, short value, boolean expectFailure) in getShort()
225 static void setInt(MethodHandle m, ValueHolder v, int value, boolean expectFailure) in setInt()
246 static void getInt(MethodHandle m, ValueHolder v, int value, boolean expectFailure) in getInt()
263 static void setLong(MethodHandle m, ValueHolder v, long value, boolean expectFailure) in setLong()
284 static void getLong(MethodHandle m, ValueHolder v, long value, boolean expectFailure) in getLong()
301 static void setFloat(MethodHandle m, ValueHolder v, float value, boolean expectFailure) in setFloat()
322 static void getFloat(MethodHandle m, ValueHolder v, float value, boolean expectFailure) in getFloat()
339 static void setDouble(MethodHandle m, ValueHolder v, double value, boolean expectFailure) in setDouble()
361 static void getDouble(MethodHandle m, ValueHolder v, double value, boolean expectFailure) in getDouble()
379 static void setString(MethodHandle m, ValueHolder v, String value, boolean expectFailure) in setString()
401 static void getString(MethodHandle m, ValueHolder v, String value, boolean expectFailure) in getString()
419 static void setBoolean(MethodHandle m, ValueHolder v, boolean value, boolean expectFailure) in setBoolean()
441 static void getBoolean(MethodHandle m, ValueHolder v, boolean value, boolean expectFailure) in getBoolean()
467 ValueHolder valueHolder, in tryAccessor()
564 ValueHolder valueHolder = new ValueHolder(); in main()
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()
579 assertTrue(ValueHolder.s_z == b); 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()
594 assertTrue(ValueHolder.s_b == b); 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()
609 assertTrue(ValueHolder.s_c == c); 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()
624 assertTrue(ValueHolder.s_s == s); 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()
639 assertTrue(ValueHolder.s_i == i); 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()
654 assertTrue(ValueHolder.s_f == f); 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()
669 assertTrue(ValueHolder.s_d == d); 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()
684 assertTrue(ValueHolder.s_j == j); 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()
698 assertTrue(s.equals(ValueHolder.s_l)); in main()
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()
755 MethodHandle h0 = lookup.findStaticGetter(ValueHolder.class, "s_fi", int.class); in testStaticGetter()
776 ValueHolder valueHolder = new ValueHolder(); in testMemberGetter()
778 MethodHandle h0 = lookup.findGetter(ValueHolder.class, "m_fi", int.class); in testMemberGetter()
809 ValueHolder valueHolder = new ValueHolder(); in testMemberSetter()
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()
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()
878 assertTrue(ValueHolder.s_f == floatNumber.floatValue()); in testStaticSetter()
888 assertTrue(ValueHolder.s_s == 45); in testStaticSetter()
945 ValueHolder v = new ValueHolder(); in main()
948 Field f = ValueHolder.class.getDeclaredField("m_c"); in main()
956 Field f = ValueHolder.class.getDeclaredField("s_fi"); in main()
980 Field f = ValueHolder.class.getDeclaredField("m_pz"); in main()
1008 Field f = ValueHolder.class.getDeclaredField("s_fz"); // private static final field in main()