Java Javadoc 包括 Private [英] Java Javadoc include Private
问题描述
我想为我的应用程序生成 javadoc,我还想包含私有成员.
I would like to generate javadocs for my application and i would also like to include private members.
-private
Shows all classes and members.
你能帮我举个例子吗?
它应该类似于:javadoc -private ...
.我需要知道如何为生成的 html doc 文件提供根目录和目标目录.
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.
谢谢.
我找到了一种从 NetBeans 6.8 生成 javadoc 的方法.如下:
i found a way to generate javadoc from NetBeans 6.8. this is as follows:
NetBeans Java 项目通常在项目的属性部分有一个参数.您可以在项目"窗口中右键单击项目名称并选择属性".在出现的 Project Properties 窗口中,Documenting 节点包含一个标记为Include Private and Package Private Members"的复选框字段.
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’.
我在这里
似乎根据需要生成文档.谢谢大家.
seems to generate docs as desired. thank you everyone.
推荐答案
从命令行,它说
javadoc [options] [packagenames] [sourcefiles] [@files]
所以它会是这样的:
javadoc -private -d output/directory -sourcepath src/java
但您也可以查看 javadoc 文档 和这个部分.
But you may also take a look to the javadoc documentation and this section.
这篇关于Java Javadoc 包括 Private的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!