Java Javadoc 包括 Private

发布于 2024-09-06 21:08:41 字数 677 浏览 4 评论 0原文

我想为我的应用程序生成 javadoc,并且我还想包含私有成员。

我在 Javadoc 文档 中找到了以下内容

       -private
           Shows all classes and members.

您能帮我举一个执行的例子吗?

它应该类似于:javadoc -private ...。我需要知道如何为生成的 html 文档文件提供根目录和目标目录。

谢谢。

编辑:我找到了一种从 NetBeans 6.8 生成 javadoc 的方法。如下所示:

NetBeans Java 项目通常在项目的属性部分中有一个参数。您可以在“项目”窗口中右键单击项目名称,然后选择“属性”。在出现的“项目属性”窗口中,“文档化”节点包含一个标记为“包括私有成员和包私有成员”的复选框字段。

我发现这个这里

似乎可以根据需要生成文档。谢谢大家。

I would like to generate javadocs for my application and i would also like to include private members.

I have found the following in the Javadoc documentation

       -private
           Shows all classes and members.

Could you please help me by giving an example of the execution of this?

It should be something like: javadoc -private .... I need to know how to provide the root directory and destination directory for the generated html doc files.

thank you.

EDIT: i found a way to generate javadoc from NetBeans 6.8. this is as follows:

NetBeans Java projects typically have a parameter for this in the project’s properties section. You can right-click the project name in the Projects Window and select Properties. In the Project Properties window that appears, the Documenting node contains a checkbox field labeled ‘Include Private and Package Private Members’.

i found this here

seems to generate docs as desired. thank you everyone.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

守护在此方 2024-09-13 21:08:41

从命令行,它说

javadoc [options] [packagenames] [sourcefiles] [@files]

所以它会是这样的:

javadoc -private -d output/directory -sourcepath src/java

但您也可以查看 javadoc 文档 和这个 部分

From the command line, it says

javadoc [options] [packagenames] [sourcefiles] [@files]

So it would be something like:

javadoc -private -d output/directory -sourcepath src/java

But you may also take a look to the javadoc documentation and this section.

残月升风 2024-09-13 21:08:41

您看过手册页吗?

https://docs.oracle.com/javase/ 1.5.0/docs/tooldocs/solaris/javadoc.html

它包含一段简单示例。

例如尝试这个

javadoc -private -d /home/html -sourcepath /home/src

Have you looked at the man-page?

https://docs.oracle.com/javase/1.5.0/docs/tooldocs/solaris/javadoc.html

It contains a section of simple examples.

Try this for instance

javadoc -private -d /home/html -sourcepath /home/src
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文