Lines Matching refs:instance
72 // create an instance of the class that will be modified
308 * instance methods via reflection.
362 public int callGet(Object instance, int a, long b) throws Exception {
363 Method m = instance.getClass().getMethod("get",
366 Object result = m.invoke(instance, a, b);
374 public int callGet_Original(Object instance, int a, long b) throws Exception {
375 Method m = instance.getClass().getMethod("get_Original",
378 Object result = m.invoke(instance, a, b);
386 public <T> T callMethod(Object instance, String methodName, boolean makePublic) throws Exception {
387 Method m = instance.getClass().getDeclaredMethod(methodName, (Class<?>[])null);
394 Object result = m.invoke(instance, (Object[])null);
406 public int callAdd(Object instance, int a, int b) throws Exception {
407 Method m = instance.getClass().getMethod("add",
410 Object result = m.invoke(instance, a, b);
418 public int callCallNativeInstance(Object instance, int a, double d, Object[] o)
420 Method m = instance.getClass().getMethod("callNativeInstance",
423 Object result = m.invoke(instance, a, d, o);
440 * @param cl2 The {@link ClassLoader2} instance with the generated bytecode.