• Home
  • Raw
  • Download

Lines Matching refs:field

53     void printFieldInfo(Field field) {  in printFieldInfo()  argument
54 System.out.println("Field name is " + field.getName()); in printFieldInfo()
56 + field.getDeclaringClass().getName()); in printFieldInfo()
57 System.out.println(" Field type is " + field.getType().getName()); in printFieldInfo()
59 + Integer.toHexString(field.getModifiers())); in printFieldInfo()
67 Field field = null; in showStrings() local
69 field = target.getField("string1"); in showStrings()
70 one = (String) field.get(instance); in showStrings()
72 field = target.getField("string2"); in showStrings()
73 two = (String) field.get(instance); in showStrings()
75 field = target.getField("string3"); in showStrings()
76 three = (String) field.get(instance); in showStrings()
109 Field field = target.getField("innerField"); in checkAccess() local
111 int x = field.getInt(instance); in checkAccess()
126 Field field = null; in run() local
179 field = target.getField("string1"); in run()
180 if (field.getDeclaringClass() != target) in run()
182 printFieldInfo(field); in run()
183 String strVal = (String) field.get(instance); in run()
188 field.set(instance, new String("a new string")); in run()
189 strVal = (String) field.get(instance); in run()
195 field.set(instance, new Object()); in run()
205 field = target.getField("string4"); in run()
206 four = (String) field.get(instance); in run()
218 field = target.getField("string3"); in run()
219 three = (String) field.get(this); in run()
231 field = target.getDeclaredField("string3"); in run()
232 field.set(instance, null); in run()
238 field = target.getDeclaredField("nonExistent"); in run()
252 field = target.getField("pubLong"); in run()
253 longVal = field.getLong(instance); in run()
256 field.setLong(instance, 0x9988776655443322L); in run()
257 longVal = field.getLong(instance); in run()
262 field = target.getField("superInt"); in run()
263 if (field.getDeclaringClass() == target) in run()
265 printFieldInfo(field); in run()
266 int intVal = field.getInt(instance); in run()
268 Integer boxedIntVal = (Integer) field.get(instance); in run()
271 field.set(instance, new Integer(20202)); in run()
272 intVal = field.getInt(instance); in run()
274 field.setShort(instance, (short)30303); in run()
275 intVal = field.getInt(instance); in run()
277 field.setInt(instance, 40404); in run()
278 intVal = field.getInt(instance); in run()
281 field.set(instance, new Long(123)); in run()
288 field.setLong(instance, 123); in run()
295 field.set(instance, new String("abc")); in run()
303 field.getShort(instance); in run()
310 field = target.getField("superClassInt"); in run()
311 printFieldInfo(field); in run()
312 int superClassIntVal = field.getInt(instance); in run()
315 field = target.getField("staticDouble"); in run()
316 printFieldInfo(field); in run()
317 double staticDoubleVal = field.getDouble(null); in run()
321 field.getLong(instance); in run()
330 field = target.getField("aPrivateInt"); in run()
331 printFieldInfo(field); in run()
341 field = target.getField("constantString"); in run()
342 printFieldInfo(field); in run()
343 String val = (String) field.get(instance); in run()
347 field = target.getField("cantTouchThis"); in run()
348 printFieldInfo(field); in run()
349 intVal = field.getInt(instance); in run()
352 field.setInt(instance, 99); in run()
357 intVal = field.getInt(instance); in run()
360 System.out.println(" " + field + " accessible=" + field.isAccessible()); in run()
361 field.setAccessible(true); in run()
362 System.out.println(" " + field + " accessible=" + field.isAccessible()); in run()
363 field.setInt(instance, 87); // exercise int version in run()
364 intVal = field.getInt(instance); in run()
366 field.set(instance, 88); // exercise Object version in run()
367 intVal = field.getInt(instance); in run()
467 Field field = niuClass.getField("staticField"); in checkClinitForFields() local
469 field.get(null); in checkClinitForFields()
508 Field field; in checkGeneric() local
510 field = Main.class.getField("dummy"); in checkGeneric()
514 Type listType = field.getGenericType(); in checkGeneric()
877 Field field = getClass().getDeclaredField("LONG"); in test() local
878 if (1234 != field.getLong(null)) { in test()