for (Method method : ExceptionHelper.class.getDeclaredMethods()) {
// GENERATE public <type> <method>() { return helper.<method>(); }
methodDescriptor = Type.getMethodDescriptor(Type.getType(method.getReturnType()), new Type[0]);
methodVisitor = visitor.visitMethod(Opcodes.ACC_PUBLIC, method.getName(), methodDescriptor, null,
new String[0]);
methodVisitor.visitCode();
methodVisitor.visitVarInsn(Opcodes.ALOAD, 0);
methodVisitor.visitFieldInsn(Opcodes.GETFIELD, generatedType.getInternalName(), "helper",
helperType.getDescriptor());
methodVisitor.visitMethodInsn(Opcodes.INVOKEVIRTUAL, helperType.getInternalName(), method.getName(),