How to parse a javadoc? [closed]

2019-06-25 03:20发布

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?

1条回答
在下西门庆
2楼-- · 2019-06-25 03:25

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.

查看更多
登录 后发表回答