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

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

问题描述

我正在使用 Java 阅读 javadocs.

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天全站免登陆