Adventures in Java Doclets
Posted by Kelvin on 03 Mar 2010 at 11:40 pm | Tagged as: programming
I dug into the innards of javadocs and the Standard HTML Doclet recently to do 2 things:
1. decorate the standard doclet output with my custom annotations
2. generate ReStructuredText version of the custom annotations for a user manual
Its pretty cool that javadoc lets you customize output and all, but I've arrived at a few conclusions:
- the javadoc code was written by a bunch of idiots. It is a steaming pile of turd.
- it is difficult to extend, poorly designed, and the classnames make no bloody sense
- sounds crazy, but you need to COPY the ENTIRE standard doclet codebase in order to change the way it parses and displays files
- And yet.. its really not that difficult to write a doclet from scratch