Re: Re: Re: Detect if class is anonymous

Prashant Deva <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
> There is also an attribute InnerClasses (see section 4.7.6) of the JVM 7
> spec:
>   http://jcp.org/aboutJava/communityprocess/maintenance/jsr924/index3.html
> that contains relations between inner classes and outer class.
> For ASM, the method visitOuterClass in ClassVisitor will be called.


Yes but an inner class can be 'not' anonymous.

Prashant


On Tue, Apr 12, 2011 at 7:13 AM, Rémi Forax <[email protected]> wrote:

>  On 04/12/2011 12:57 PM, Rajaraman Santhanam wrote:
>
> As per VM Spec Anonymous classes are named with enclosing class as the
> prefix followed by $ and a unique decimal. For eg., An anonymous iterator
> implementation inside a class myClass will be named as MyClass$19 implements
> Iterator.
>
>  - ramanr
>
>
> There is also an attribute InnerClasses (see section 4.7.6) of the JVM 7
> spec:
>   http://jcp.org/aboutJava/communityprocess/maintenance/jsr924/index3.html
> that contains relations between inner classes and outer class.
>
> For ASM, the method visitOuterClass in ClassVisitor will be called.
>
>
>
> ---- On Tue, 12 Apr 2011 10:09:50 +0530 *Prashant Deva <
> [email protected]>* wrote ----
>
> Is there any way via asm, to detect while instrumentation, whether the
> class being instrumented is anonymous?
>
> Prashant
>
>
>
> Rémi
>
>
>
> --
> 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
>
>
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.