Lines Matching refs:v

101         static void setByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure)  in setByte()  argument
105 if (v == null) { in setByte()
109 m.invokeExact(v, value); in setByte()
122 static void getByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in getByte() argument
127 if (v == null) { in getByte()
130 got = (byte) m.invokeExact(v); in getByte()
144 static void setChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in setChar() argument
148 if (v == null) { in setChar()
152 m.invokeExact(v, value); in setChar()
165 static void getChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in getChar() argument
170 if (v == null) { in getChar()
173 got = (char) m.invokeExact(v); in getChar()
187 static void setShort(MethodHandle m, ValueHolder v, short value, boolean expectFailure) in setShort() argument
191 if (v == null) { in setShort()
195 m.invokeExact(v, value); in setShort()
208 static void getShort(MethodHandle m, ValueHolder v, short value, boolean expectFailure) in getShort() argument
212 final short got = (v == null) ? (short) m.invokeExact() : (short) m.invokeExact(v); in getShort()
225 static void setInt(MethodHandle m, ValueHolder v, int value, boolean expectFailure) in setInt() argument
229 if (v == null) { in setInt()
233 m.invokeExact(v, value); in setInt()
246 static void getInt(MethodHandle m, ValueHolder v, int value, boolean expectFailure) in getInt() argument
250 final int got = (v == null) ? (int) m.invokeExact() : (int) m.invokeExact(v); in getInt()
263 static void setLong(MethodHandle m, ValueHolder v, long value, boolean expectFailure) in setLong() argument
267 if (v == null) { in setLong()
271 m.invokeExact(v, value); in setLong()
284 static void getLong(MethodHandle m, ValueHolder v, long value, boolean expectFailure) in getLong() argument
288 final long got = (v == null) ? (long) m.invokeExact() : (long) m.invokeExact(v); in getLong()
301 static void setFloat(MethodHandle m, ValueHolder v, float value, boolean expectFailure) in setFloat() argument
305 if (v == null) { in setFloat()
309 m.invokeExact(v, value); in setFloat()
322 static void getFloat(MethodHandle m, ValueHolder v, float value, boolean expectFailure) in getFloat() argument
326 final float got = (v == null) ? (float) m.invokeExact() : (float) m.invokeExact(v); in getFloat()
339 static void setDouble(MethodHandle m, ValueHolder v, double value, boolean expectFailure) in setDouble() argument
343 if (v == null) { in setDouble()
347 m.invokeExact(v, value); in setDouble()
361 static void getDouble(MethodHandle m, ValueHolder v, double value, boolean expectFailure) in getDouble() argument
365 … final double got = (v == null) ? (double) m.invokeExact() : (double) m.invokeExact(v); in getDouble()
379 static void setString(MethodHandle m, ValueHolder v, String value, boolean expectFailure) in setString() argument
383 if (v == null) { in setString()
387 m.invokeExact(v, value); in setString()
401 static void getString(MethodHandle m, ValueHolder v, String value, boolean expectFailure) in getString() argument
405 … final String got = (v == null) ? (String) m.invokeExact() : (String) m.invokeExact(v); in getString()
419 static void setBoolean(MethodHandle m, ValueHolder v, boolean value, boolean expectFailure) in setBoolean() argument
423 if (v == null) { in setBoolean()
427 m.invokeExact(v, value); in setBoolean()
441 static void getBoolean(MethodHandle m, ValueHolder v, boolean value, boolean expectFailure) in getBoolean() argument
446 (v == null) ? (boolean) m.invokeExact() : (boolean) m.invokeExact(v); in getBoolean()
759 Integer v = (Integer) h0.invoke(); in testStaticGetter() local
782 Integer v = (Integer) h0.invoke(valueHolder); in testMemberGetter() local
945 ValueHolder v = new ValueHolder(); in main() local
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()
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()