Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaDoc Parser for common javadocs?

Is there something I can use to parse JavaDoc, such that I can operate on it through the standard Doclet interfaces at runtime? Essentially, the reverse operation of a Doclet.

I understand that it would be impossible to write a parser for every Javadoc (since this can be an arbitrary documentation format), but I'd be curious to know if there was something like that for the Standard Doclet.

like image 251
Bernardo Cunha Avatar asked Feb 24 '13 20:02

Bernardo Cunha


Video Answer


1 Answers

Doclet is a javadoc parser already. Think of the Doclet as a SAX Parser

Each call to your methods will be provided the exact same data that is given to a normal javadoc doclet. Run your subclassed Doclet on the source code and it will present the documentation to you through the callback methods.

like image 149
deepThunk Avatar answered Sep 21 '22 12:09

deepThunk