How to parse a javadoc? [closed]

给你一囗甜甜゛ 提交于 2019-12-14 01:06:36

问题


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:


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.



来源:https://stackoverflow.com/questions/7657634/how-to-parse-a-javadoc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!