Lines Matching defs: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);
146 Target instance = new Target();
156 boxval = (Integer) meth.invoke(instance, argList);
161 meth.invoke(instance, (Object[]) null);
166 meth.invoke(instance, (Object[]) null);
184 String strVal = (String) field.get(instance);
187 showStrings(instance);
189 field.set(instance, new String("a new string"));
190 strVal = (String) field.get(instance);
193 showStrings(instance);
196 field.set(instance, new Object());
207 four = (String) field.get(instance);
233 field.set(instance, null);
254 longVal = field.getLong(instance);
257 field.setLong(instance, 0x9988776655443322L);
258 longVal = field.getLong(instance);
267 int intVal = field.getInt(instance);
269 Integer boxedIntVal = (Integer) field.get(instance);
272 field.set(instance, new Integer(20202));
273 intVal = field.getInt(instance);
275 field.setShort(instance, (short)30303);
276 intVal = field.getInt(instance);
278 field.setInt(instance, 40404);
279 intVal = field.getInt(instance);
282 field.set(instance, new Long(123));
289 field.setLong(instance, 123);
296 field.set(instance, new String("abc"));
304 field.getShort(instance);
313 int superClassIntVal = field.getInt(instance);
322 field.getLong(instance);
344 String val = (String) field.get(instance);
350 intVal = field.getInt(instance);
353 field.setInt(instance, 99);
358 intVal = field.getInt(instance);
364 field.setInt(instance, 87); // exercise int version
365 intVal = field.getInt(instance);
367 field.set(instance, 88); // exercise Object version
368 intVal = field.getInt(instance);