如何解析的javadoc? [英] How to parse a javadoc?

查看:191
本文介绍了如何解析的javadoc?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Java来读取的javadoc的过程。

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

我的Java对象的属性,
描述
包名称
 方法名称,方法说明

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

是否有任何现有的API,可以做到这一点?
我怎样才能阅读的javadoc以这样的方式,我可以提取上述属性?

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?

推荐答案

借助 javadoc的工具包括用于编写自定义的doclet的API。这些基本上得到的文档片段的解析树,它们产生某种报告的基础上。标准doclet生成HTML页面大家都很熟悉。你最简单的选择很可能会写自己的doclet。

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.

这篇关于如何解析的javadoc?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆