Java Javadoc 包括 Private
我想为我的应用程序生成 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从命令行,它说
所以它会是这样的:
但您也可以查看 javadoc 文档 和这个 部分。
From the command line, it says
So it would be something like:
But you may also take a look to the javadoc documentation and this section.
您看过手册页吗?
https://docs.oracle.com/javase/ 1.5.0/docs/tooldocs/solaris/javadoc.html
它包含一段简单示例。
例如尝试这个
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