Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to parse a javadoc? [closed]

I am in the process of using Java to read javadocs.

My java object has the attributes, Description Package Name Method Name, Method Description

Is there any existing api that can do this? How can I read the javadoc in such a way that I can extract the above mentioned attributes?

like image 251
user979793 Avatar asked Dec 17 '22 08:12

user979793


1 Answers

The javadoc tool includes an API for writing custom doclets. These basically get the parsed tree of documentation fragments and they generate some kind of report based on that. The standard doclet generates the HTML pages everyone is familiar with. Your easiest option is likely to write your own doclet.

like image 55
jackrabbit Avatar answered Dec 25 '22 22:12

jackrabbit