在哪里可以下载当前版本的标准JavaDoc doclet的源代码(1.5或1.6) [英] Where can you download the source for the standard JavaDoc doclet for current releases (1.5 or 1.6)

查看:116
本文介绍了在哪里可以下载当前版本的标准JavaDoc doclet的源代码(1.5或1.6)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣更改标准JavaDoc Doclet,以便在标记的正常输出之前生成一些额外的文档。查看代码(使用反编译器)我可以看到我唯一真正的选择是下载HtmlDoclet和朋友的源并进行一些修改......但是唯一可用的源代码是1.3版本的代码,不了解最近的更新,如注释等。

I'm interested in changing the standard JavaDoc Doclet to generate some additional documentation before the normal output of tags. Looking at the code (using a decompiler) I can see that my only real option is to download the source for HtmlDoclet and friends and make a few modifications ... but the only source that's available is for the 1.3 version of the code, which doesn't understand recent updates such as annotations and so forth.

推荐答案

这里你会发现标准Doclet的来源源文件的说明位于目录src / share / classes / com / sun / tools / doclets 中。实际上,要考虑的子目录可能是 langtools

Here you will find a hint to The Source for the Standard Doclet and a note that The source files are located in the directory src/share/classes/com/sun/tools/doclets. In fact, the subdirectory to consider might be langtools.

链接的JDK源代码版本有点过时了。可以从此处下载实际的JDK源代码。如果您下载并安装 jdk-6u23-fcs-src-b05-jrl-12_nov_2010.jar 文件,您将在上述位置找到您要查找的内容。

The linked JDK Source Code Release is a bit outdated. A actual JDK source code download can be done from here. If you download and install the jdk-6u23-fcs-src-b05-jrl-12_nov_2010.jar file you will find what you are looking for at the location explained above.

这篇关于在哪里可以下载当前版本的标准JavaDoc doclet的源代码(1.5或1.6)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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