Java Javadoc包括Private [英] Java Javadoc include Private
问题描述
我想为我的应用程序生成javadocs,我还希望包含私有成员。
I would like to generate javadocs for my application and i would also like to include private members.
我在 Javadoc文档
-private
Shows all classes and members.
请举一个这样的例子来帮助我吗?
Could you please help me by giving an example of the execution of this?
应该是这样的: 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
这篇关于Java Javadoc包括Private的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!