0 Replies Latest reply on Jun 12, 2012 4:47 AM by maciejmad

    How to get inner class name with annotation by ClassFile ?

    maciejmad

      Hi

      I have simple class with annotated inner classes:

       

      public class Main {

       

           @MyAnnotation

           private static final class A{

         

           }

       

           @MyAnnotation

           private static final class B{

        

           }

       

           private static final class C{

       

           }

       

      }

       

      The only thing I have is binary data of Main class, so I create ClassFile.

       

      How can I get all inner class names exist in Main class with annotation @MyAnnotation from this classFile ? (in this case name for class A and B)

       

      Best regards

      maciejmad