如何扩展JavaDoc 5.0标准doclet? [英] How to extend JavaDoc 5.0 standard doclet?

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

问题描述

我想扩展Javadoc5.0提供的标准doclet来修改其HTML输出.例如,当生成的JavaDoc HTML中出现关键字"implemented"或"Interfaces"时,我想用另一个单词替换它.所有其他元素均不应更改.我怎样才能做到这一点?生成Javadoc后,我不想修改HTML源代码!我必须扩展哪些课程?网络上有有用的教程吗?我搜索了教程,但只找到了 http://docs.oracle. com/javase/1.5.0/docs/guide/javadoc/doclet/overview.html ,由于示例未扩展标准doclet,这对我没有太大帮助.在 http://www.oracle.com/technetwork/java/上找到了另一个来源javase/documentation/index-137483.html#customizingjavadoc ,但是我不能将其应用于JavaDoc5.0.有人可以提供一个有用的例子吗? 谢谢!

I want to extend the standard doclet provided by Javadoc5.0 to modify its HTML output. For example I want to replace the keyword 'implemented' or 'Interfaces' with another word whenever it occurs within the generated JavaDoc HTML. All other elements should not be changed. How can I achieve this? I do not want to modify the HTML source after the Javadoc is generated! Which Classes I have to extend? Is there a useful tutorial in the net? I searched for tutorials but found only this http://docs.oracle.com/javase/1.5.0/docs/guide/javadoc/doclet/overview.html which does not help me very much since the examples don't extend the standard doclet. Found another source on http://www.oracle.com/technetwork/java/javase/documentation/index-137483.html#customizingjavadoc but I cannot apply this to JavaDoc5.0. Can anybody provide a useful example? Thanks!

推荐答案

您已经看到Doxygen吗? Doxygen

Have you already see Doxygen? Doxygen

它可能是javadoc的绝佳替代品,它是免费的且可自定义. 我认为这可以为您提供帮助. 我希望能对您有所帮助.

It could be a great alternative to javadoc and it is free and customizable. I think that it could help you. I hope to have helped you.

这篇关于如何扩展JavaDoc 5.0标准doclet?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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