newbie question - asm - insert code in the middle of a method
a v <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have a block of code as follows:
MyThread thread = null;
Thread aThread = Thread.currentThread();
if (aThread instanceof MyThread)
{
thread = (MyThread) Thread.currentThread();
/* The following code needs to be injected here
if (someVariable != null) {
return true;
}
*/
}
return false;
Question:
I can insert code in the beginning (visitCode() and end (visitEnd()) of a
method but how do I inject the lines of code as shown above?
-Thanx in advance
Nura
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