How to get annotation information from a java source-file? [message #301678] |
Tue, 04 April 2006 05:46  |
Eclipse User |
|
|
|
Originally posted by: automatic.javalobby.org
Hi everybody,
I am writing a validator for a self-programmed editor. Therefore, I need the annotations from classes and methods. Since those classes are not in the classpath of my validator, I can't use the following:
Class<?> myType = Class.forName("mypackage.MyType");
Annotation[] myAnnotations = myType.getAnnotations();
Method[] myMethods = myType.getMethods();
Annotation[] myAnnotations2 = myMethods[0].getAnnotations();
Do you know if and how I can get this information from org.eclipse.jdt.core.IType or where else can I get it from?
Thanks for your consideration!
Judith
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.24407 seconds