6

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.

Mark Rotteveel
  • 82,132
  • 136
  • 114
  • 158
Bernardo Cunha
  • 333
  • 1
  • 3
  • 10

1 Answers1

1

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.

deepThunk
  • 11
  • 2