Re: Re: Re: Question on counting number of parameters for a MethodNode
Eugene Kuleshov <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
There is no information about methods or classes on the caller side. The only way is to use class/method repository similar to Java reflection API, e.g. like one implemented in AspectWerks (see its ClassInfo API). Basically read referenced classes as resources, parse them using ASM and store into your own in-memory structures. Though if it is just for skipping the native methods, that may be an overkill. regards, Eugene On Wed, Jul 7, 2010 at 11:48 AM, Sai Zhang <[email protected]> wrote: > Oh. sorry for typo. I mean MethodInsnNode not MethodNode. > > I plan to instrument each method invocation in the insnlist, but skip the > native method. > > Sorry for my confusion. > > -Sai > > On Wed, Jul 7, 2010 at 11:38 AM, Eugene Kuleshov <[email protected]> > wrote: >> >> (methodNode.access | Opcodes.ACC_NATIVE )>0 >> >> If I am not mistaken, native methods also going to have ACC_ABSTRACT flag >> set. >> >> regards, >> Eugene
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