Method copy using MultiMethodAdapter(?)

<[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Hi,

I am looking to create a copy of each and every method in a class, instrument
the copy in some manner, and insert a call to the copy at the top of the
original passing it the same arguments as the original. For example:

Before transformation:

void foo (Obj a) {
  ...
}

After transformation:

void foo (Obj a) {
  foo_copy(a);
  ...
}

void foo_copy (Obj a) {
  ...
}

How do I create foo_copy when I visit foo? I understand how to do it using
MultiMethodAdapter as used here
(http://mail-archive.ow2.org/asm/2008-03/msg00036.html) and on page 48 in the
ASM 3.0 user guide, but MultiMethodAdapter doesn't exist. What is the
alternative?

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.