Lines Matching defs:instance
72 // create an instance of the class that will be modified
291 * instance methods via reflection.
345 public int callGet(Object instance, int a, long b) throws Exception {
346 Method m = instance.getClass().getMethod("get",
349 Object result = m.invoke(instance, new Object[] { a, b });
357 public int callGet_Original(Object instance, int a, long b) throws Exception {
358 Method m = instance.getClass().getMethod("get_Original",
361 Object result = m.invoke(instance, new Object[] { a, b });
369 public <T> T callMethod(Object instance, String methodName, boolean makePublic) throws Exception {
370 Method m = instance.getClass().getDeclaredMethod(methodName, (Class<?>[])null);
377 Object result = m.invoke(instance, (Object[])null);
389 public int callAdd(Object instance, int a, int b) throws Exception {
390 Method m = instance.getClass().getMethod("add",
393 Object result = m.invoke(instance, new Object[] { a, b });
401 public int callCallNativeInstance(Object instance, int a, double d, Object[] o)
403 Method m = instance.getClass().getMethod("callNativeInstance",
406 Object result = m.invoke(instance, new Object[] { a, d, o });
423 * @param cl2 The {@link ClassLoader2} instance with the generated bytecode.