Re: Re: Method copy using MultiMethodAdapter(?)
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
I have the following code thus far:
class MyClassAdapter extends ClassAdapter {
...
public MethodVisitor visitMethod(int access, String name, String descriptor,
String signature, String[] exceptions) {
MethodVisitor mv = cv.visitMethod(access, name, descriptor, signature,
exceptions);
MethodVisitor mv2 = super.visitMethod(access, name+"_copy", descriptor,
signature, exceptions);
MethodVisitor ret = new MultiMethodAdapter(mv, mv2){
@Override
public void visitCode() {
mv1.visitCode();
mv2.visitCode();
...
}
};
return ret;
}
}
This is mostly from the link I mentioned in the previous email
(http://mail-archive.ow2.org/asm/2008-03/msg00036.html). However, there is no
MultiMethodAdapter class using which I can simultaneously visit both the old
and new methods. This is where I am stuck. Is there a different way to do?
Thanks.
Arun
message-footer.txt
(text/plain, 238 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws