Is there a way to get the @param comments for a method in Java? I know it could be easily achieved by parsing each java file. However this seems like something that should already be available in a tool like JavaCC.
Example – I want to be able to read ch and observer:
* @param ch the character to be tested
* @param observer the image observer to be notified
If you have the sources, you might like to consider using QDox which is described as a high speed, small footprint parser for extracting class/interface/method definitions from source files complete with JavaDoc @tags. It is designed to be used by active code generators or documentation tools.
Sample code from documentation: