[jboss-user] [Javassist] - How to get inner class name with annotation by ClassFile ?
Maciej Madajczyk
do-not-reply at jboss.com
Tue Jun 12 04:47:36 EDT 2012
Maciej Madajczyk [https://community.jboss.org/people/maciejmad] created the discussion
"How to get inner class name with annotation by ClassFile ?"
To view the discussion, visit: https://community.jboss.org/message/741159#741159
--------------------------------------------------------------
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
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/741159#741159]
Start a new discussion in Javassist at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2062]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120612/3b7272c9/attachment-0001.html
More information about the jboss-user
mailing list