How to read Javadoc comments by reflection?
I need to know how to read Javadoc comments at run-time (probably by reflection?) Say I have the following function: /** * function that do some thing */ public void myFunc() { //... } At runtime, I can get much information about this function by reflection.. But cannot read the comments. So the question is, How to read this javadoc comments at runtime. Consider to use annotations instead of Javadoc and write an annotation processor. Khayredinov Dmitriy Doclet class: public class ExtractCommentsDoclet { public static boolean start(RootDoc root) throws IOException { for (ClassDoc c : root