Javadoc 用法

javadoc -OPTION file1.java file2.java

OPTION:

-d <directory> Destination directory for output files
-use Create class and package usage pages
-version Include @version paragraphs
-author Include @author paragraphs
-docfilessubdirs Recursively copy doc-file subdirectories
-splitindex Split index into one file per letter
-windowtitle <text> Browser window title for the documenation
-doctitle <html-code> Include title for the overview page
-header <html-code> Include header text for each page
-footer <html-code> Include footer text for each page
-top <html-code> Include top text for each page
-bottom <html-code> Include bottom text for each page
-link <url> Create links to javadoc output at <url>
-linkoffline <url> <url2> Link to docs at <url> using package list at <url2>
-excludedocfilessubdir <name1>:.. Exclude any doc-files subdirectories with given name.
-group <name> <p1>:<p2>.. Group specified packages together in overview page
-nocomment Supress description and tags, generate only declarations.
-nodeprecated Do not include @deprecated information
-noqualifier <name1>:<name2>:... Exclude the list of qualifiers from the output.
-nosince Do not include @since information
-notimestamp Do not include hidden time stamp
-nodeprecatedlist Do not generate deprecated list
-notree Do not generate class hierarchy
-noindex Do not generate index
-nohelp Do not generate help link
-nonavbar Do not generate navigation bar
-serialwarn Generate warning about @serial tag
-tag <name>:<locations>:<header> Specify single argument custom tags
-taglet The fully qualified name of Taglet to register
-tagletpath The path to Taglets
-charset <charset> Charset for cross-platform viewing of generated documentation.
-helpfile <file> Include file that help link links to
-linksource Generate source in HTML
-sourcetab <tab length> Specify the number of spaces each tab takes up in the source
-keywords Include HTML meta tags with package, class and member info
-stylesheetfile <path> File to change style of the generated documentation
-docencoding <name> Output encoding name

例子: javadoc -d /home/illy/workspace/javadoc/src/ -link http://download.java.net/jdk7docs/api/ -author -private Time_REV_7.java Man_REV_2.java

之后可从index.html查看。

 

 

Tag Descrizione
@author Nome dello sviluppatore.
@deprecated (vedere sopra) indica che l'elemento potrà essere eliminato da una versione successiva del software.
@exception Indica eccezioni lanciate da un metodo; cf. @throws.
@link Crea un collegamento ipertestuale alla documentazione locale o a risorse esterna (tipicamente internet).
@param Definisce i parametri di un metodo. Richiesto per ogni parametro.
@return Indica i valori di ritorno di un metodo. Questo tag non va usato per metodi o costruttori che restituiscono void.
@see Indica un'associazione a un altro metodo o classe.
@since Indica quando un metodo è stato aggiunto a una classe.
@throws Indica eccezioni lanciate da un metodo. Sinonimo di @exception introdotto in Javadoc 1.2.
@version Indica il numero di versione di una classe o un metodo.

你可能感兴趣的:(javadoc)