Lines Matching refs:instance
62 private void showStrings(Target instance)
70 one = (String) field.get(instance);
73 two = (String) field.get(instance);
76 three = (String) field.get(instance);
84 Object instance = new otherpackage.Other();
88 meth.invoke(instance);
98 instance = otherpackage.Other.getInnerClassInstance();
99 target = instance.getClass();
103 meth.invoke(instance);
111 int x = field.getInt(instance);
145 Target instance = new Target();
155 boxval = (Integer) meth.invoke(instance, argList);
160 meth.invoke(instance, (Object[]) null);
165 meth.invoke(instance, (Object[]) null);
183 String strVal = (String) field.get(instance);
186 showStrings(instance);
188 field.set(instance, new String("a new string"));
189 strVal = (String) field.get(instance);
192 showStrings(instance);
195 field.set(instance, new Object());
206 four = (String) field.get(instance);
232 field.set(instance, null);
253 longVal = field.getLong(instance);
256 field.setLong(instance, 0x9988776655443322L);
257 longVal = field.getLong(instance);
266 int intVal = field.getInt(instance);
268 Integer boxedIntVal = (Integer) field.get(instance);
271 field.set(instance, new Integer(20202));
272 intVal = field.getInt(instance);
274 field.setShort(instance, (short)30303);
275 intVal = field.getInt(instance);
277 field.setInt(instance, 40404);
278 intVal = field.getInt(instance);
281 field.set(instance, new Long(123));
288 field.setLong(instance, 123);
295 field.set(instance, new String("abc"));
303 field.getShort(instance);
312 int superClassIntVal = field.getInt(instance);
321 field.getLong(instance);
343 String val = (String) field.get(instance);
349 intVal = field.getInt(instance);
352 field.setInt(instance, 99);
357 intVal = field.getInt(instance);
363 field.setInt(instance, 87); // exercise int version
364 intVal = field.getInt(instance);
366 field.set(instance, 88); // exercise Object version
367 intVal = field.getInt(instance);