從幫助文件,您可以使用這些標誌/參數的Javadoc:
-public Show only public classes and members
-protected Show protected/public classes and members (default)
-package Show package/protected/public classes and members
-private Show all classes and members
-help Display command line options and exit
-doclet <class> Generate output via alternate doclet
-docletpath <path> Specify where to find doclet class files
-sourcepath <pathlist> Specify where to find source files
-classpath <pathlist> Specify where to find user class files
-exclude <pkglist> Specify a list of packages to exclude
-subpackages <subpkglist> Specify subpackages to recursively load
或者,你可以使用一個構建工具,如Ant或Maven生成具有很好的包裹功能,爲您的javadoc。下面是我的一個項目的ant javadoc目標:
<target name="javadoc" description = "generate javadoc from source">
<delete dir="javadoc" verbose ="true"/>
<javadoc packagenames ="my.app.*"
sourcepathref = "javadoc.sourcepath"
author ="true"
destdir = "javadoc"
windowtitle = "${project-name} API"
linksource= "yes"
overview="${src}/overview-summary.html"
access="public">
</javadoc>
</target>