[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bcel-user
Subject:    Re: Get InnerClass and AnonymousClass fusing BCEL API
From:       "Dave Brosius" <dbrosius () apache ! org>
Date:       2006-03-03 12:57:50
Message-ID: 004801c63ec2$14197cb0$6401a8c0 () MeBigFatGuy
[Download RAW message or body]

Inner classes are defined as an attribute of the java class. So 
JavaClass.getAttributes returns an array of Attributes, one of which is of 
type InnerClasses. Casting to that will allow you to see what classes are 
inner classes (anonymous or not).

----- Original Message ----- 
From: "Pico Florin" <picoflorin@yahoo.co.uk>
To: <bcel-user@jakarta.apache.org>
Sent: Thursday, March 02, 2006 10:21 AM
Subject: Get InnerClass and AnonymousClass fusing BCEL API


> Hi!
>    I'm new in BCEL. I've just tested your API and I want to ask you this:
>  1.how can I obtain the Inner Classes and Anonymous as JavaClass class  in 
> order to treat them like this(i.e. to see what are their fields,  methods 
> etc). To be more specific, I want to have the same  functionality like the 
> method getDeclaredClasses() from the  java.lang.Class. Is this possible 
> with your API?
>  2. It is possible with  your API to obtain the anonymous class  defined 
> in a code like this(the method mentioned above  getDeclaredClasses doesn't 
> report it)
>
>  public static void main(String[] args) {
>          javax.swing.SwingUtilities.invokeLater(new Runnable() {
>              public void run() {
>                  createAndShowGUI();
>              }
>          });
>     }
>
>  Thank you in advance,
>       Florin
>
>
>
> ---------------------------------
> Yahoo! Messenger  NEW - crystal clear PC to PC calling worldwide with 
> voicemail 


---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic