Lines Matching refs:value

70         public static void assertTrue(boolean value) throws AssertionError {  in assertTrue()  argument
71 if (!value) { in assertTrue()
101 static void setByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in setByte() argument
106 m.invokeExact(value); in setByte()
109 m.invokeExact(v, value); in setByte()
118 static void setByte(MethodHandle m, byte value, boolean expectFailure) throws Throwable { in setByte() argument
119 setByte(m, null, value, expectFailure); in setByte()
122 static void getByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in getByte() argument
132 assertTrue(got == value); in getByte()
140 static void getByte(MethodHandle m, byte value, boolean expectFailure) throws Throwable { in getByte() argument
141 getByte(m, null, value, expectFailure); in getByte()
144 static void setChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in setChar() argument
149 m.invokeExact(value); in setChar()
152 m.invokeExact(v, value); in setChar()
161 static void setChar(MethodHandle m, char value, boolean expectFailure) throws Throwable { in setChar() argument
162 setChar(m, null, value, expectFailure); in setChar()
165 static void getChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in getChar() argument
175 assertTrue(got == value); in getChar()
183 static void getChar(MethodHandle m, char value, boolean expectFailure) throws Throwable { in getChar() argument
184 getChar(m, null, value, expectFailure); in getChar()
187 static void setShort(MethodHandle m, ValueHolder v, short value, boolean expectFailure) in setShort() argument
192 m.invokeExact(value); in setShort()
195 m.invokeExact(v, value); in setShort()
204 static void setShort(MethodHandle m, short value, boolean expectFailure) throws Throwable { in setShort() argument
205 setShort(m, null, value, expectFailure); in setShort()
208 static void getShort(MethodHandle m, ValueHolder v, short value, boolean expectFailure) in getShort() argument
213 assertTrue(got == value); in getShort()
221 static void getShort(MethodHandle m, short value, boolean expectFailure) throws Throwable { in getShort() argument
222 getShort(m, null, value, expectFailure); in getShort()
225 static void setInt(MethodHandle m, ValueHolder v, int value, boolean expectFailure) in setInt() argument
230 m.invokeExact(value); in setInt()
233 m.invokeExact(v, value); in setInt()
242 static void setInt(MethodHandle m, int value, boolean expectFailure) throws Throwable { in setInt() argument
243 setInt(m, null, value, expectFailure); in setInt()
246 static void getInt(MethodHandle m, ValueHolder v, int value, boolean expectFailure) in getInt() argument
251 assertTrue(got == value); in getInt()
259 static void getInt(MethodHandle m, int value, boolean expectFailure) throws Throwable { in getInt() argument
260 getInt(m, null, value, expectFailure); in getInt()
263 static void setLong(MethodHandle m, ValueHolder v, long value, boolean expectFailure) in setLong() argument
268 m.invokeExact(value); in setLong()
271 m.invokeExact(v, value); in setLong()
280 static void setLong(MethodHandle m, long value, boolean expectFailure) throws Throwable { in setLong() argument
281 setLong(m, null, value, expectFailure); in setLong()
284 static void getLong(MethodHandle m, ValueHolder v, long value, boolean expectFailure) in getLong() argument
289 assertTrue(got == value); in getLong()
297 static void getLong(MethodHandle m, long value, boolean expectFailure) throws Throwable { in getLong() argument
298 getLong(m, null, value, expectFailure); in getLong()
301 static void setFloat(MethodHandle m, ValueHolder v, float value, boolean expectFailure) in setFloat() argument
306 m.invokeExact(value); in setFloat()
309 m.invokeExact(v, value); in setFloat()
318 static void setFloat(MethodHandle m, float value, boolean expectFailure) throws Throwable { in setFloat() argument
319 setFloat(m, null, value, expectFailure); in setFloat()
322 static void getFloat(MethodHandle m, ValueHolder v, float value, boolean expectFailure) in getFloat() argument
327 assertTrue(got == value); in getFloat()
335 static void getFloat(MethodHandle m, float value, boolean expectFailure) throws Throwable { in getFloat() argument
336 getFloat(m, null, value, expectFailure); in getFloat()
339 static void setDouble(MethodHandle m, ValueHolder v, double value, boolean expectFailure) in setDouble() argument
344 m.invokeExact(value); in setDouble()
347 m.invokeExact(v, value); in setDouble()
356 static void setDouble(MethodHandle m, double value, boolean expectFailure) in setDouble() argument
358 setDouble(m, null, value, expectFailure); in setDouble()
361 static void getDouble(MethodHandle m, ValueHolder v, double value, boolean expectFailure) in getDouble() argument
366 assertTrue(got == value); in getDouble()
374 static void getDouble(MethodHandle m, double value, boolean expectFailure) in getDouble() argument
376 getDouble(m, null, value, expectFailure); in getDouble()
379 static void setString(MethodHandle m, ValueHolder v, String value, boolean expectFailure) in setString() argument
384 m.invokeExact(value); in setString()
387 m.invokeExact(v, value); in setString()
396 static void setString(MethodHandle m, String value, boolean expectFailure) in setString() argument
398 setString(m, null, value, expectFailure); in setString()
401 static void getString(MethodHandle m, ValueHolder v, String value, boolean expectFailure) in getString() argument
406 assertTrue(got.equals(value)); in getString()
414 static void getString(MethodHandle m, String value, boolean expectFailure) in getString() argument
416 getString(m, null, value, expectFailure); in getString()
419 static void setBoolean(MethodHandle m, ValueHolder v, boolean value, boolean expectFailure) in setBoolean() argument
424 m.invokeExact(value); in setBoolean()
427 m.invokeExact(v, value); in setBoolean()
436 static void setBoolean(MethodHandle m, boolean value, boolean expectFailure) in setBoolean() argument
438 setBoolean(m, null, value, expectFailure); in setBoolean()
441 static void getBoolean(MethodHandle m, ValueHolder v, boolean value, boolean expectFailure) in getBoolean() argument
447 assertTrue(got == value); in getBoolean()
455 static void getBoolean(MethodHandle m, boolean value, boolean expectFailure) in getBoolean() argument
457 getBoolean(m, null, value, expectFailure); in getBoolean()
469 Object value, in tryAccessor() argument
472 value instanceof Boolean ? ((Boolean) value).booleanValue() : false; in tryAccessor()
482 byte byteValue = value instanceof Byte ? ((Byte) value).byteValue() : (byte) 0; in tryAccessor()
492 char charValue = value instanceof Character ? ((Character) value).charValue() : 'z'; in tryAccessor()
502 short shortValue = value instanceof Short ? ((Short) value).shortValue() : (short) 0; in tryAccessor()
512 int intValue = value instanceof Integer ? ((Integer) value).intValue() : -1; in tryAccessor()
522 long longValue = value instanceof Long ? ((Long) value).longValue() : (long) -1; in tryAccessor()
532 float floatValue = value instanceof Float ? ((Float) value).floatValue() : -1.0f; in tryAccessor()
542 double doubleValue = value instanceof Double ? ((Double) value).doubleValue() : -1.0; in tryAccessor()
552 String stringValue = value instanceof String ? ((String) value) : "No Spock, no"; in tryAccessor()