paramTypes.addAll(plan.getConstructorParameterTypes()); Method constructor = new Method(IInstrumenterConstant.CONSTRUCTOR_INTERNAL_NAME, Type.VOID_TYPE, getTypes(paramTypes)); Method superConstructor = new Method(IInstrumenterConstant.CONSTRUCTOR_INTERNAL_NAME, Type.VOID_TYPE, getTypes(plan.getConstructorParameterTypes())); GeneratorAdapter mg = new GeneratorAdapter(ACC_PUBLIC, constructor, null, getTypes(plan.getConstructorExceptions()), cw);
Method invokeMethod = new Method("invoke", IInstrumenterConstant.OBJECT_TYPE, invokeMethodArgs); Method meth = new Method(plan.getMethodName(), Type.getType(plan.getReturnType()), getTypes(plan.getParameterTypes())); GeneratorAdapter mg = new GeneratorAdapter(ACC_PUBLIC, meth, null, new Type[] {}, cv);