隨筆-1  評論-68  文章-98  trackbacks-0

          作者:徐建祥

          日期: 2006-12-04

          1 、 javadoc 命令

          用法:

             javadoc [options] [packagenames] [sourcefiles] [classnames] [@files]

          選項:

          ? ??? -public ?? 僅顯示 public 類和成員

          ? ??? -protected ???? 顯示 protected/public 類和成員 ( 缺省 )

          ? ??? -package ????? 顯示 package/protected/public 類和成員

          ? ??? -private ? 顯示所有類和成員

          ? ??? -d <directory> ????? 輸出文件的目標目錄

          ? ??? -version ? 包含 @version

          ? ??? -author ?? 包含 @author

          ? ??? -splitindex ???? 將索引分為每個字母對應一個文件

          ? ??? -windowtitle <text> ????? 文檔的瀏覽器窗口標題

          2 JBuilder

          用法:

          Select File > New > Build > Javadoc from the menu bar and click OK, Select Rebuild from the Standard Doclet 's pop-up menu.

          ?

          Messages 窗口顯示的 Javadoc 日志如下:

          Standard Doclet

          ?? StdOut

          ????? 正在裝入軟件包 org.anymobile.gateway 的源文件 ...

          ????? 正在裝入軟件包 org.anymobile.gateway.util 的源文件 ...

          ????? 正在構造 Javadoc 信息 ...

          ????? 標準 Doclet 版本 1.5.0_03

          ????? 正在構建所有軟件包和類的樹 ...

          ????? 正在生成 E:\Project\jbproject\ShotMessageModem\doc\overview-frame.html...

          ????? 正在生成 E:\Project\jbproject\ShotMessageModem\doc\constant-values.html...

          ????? 正在生成 ... ...

          ????? 正在構建所有軟件包和類的索引 ...

          ????? 正在生成 E:\Project\jbproject\ShotMessageModem\doc\overview-tree.html...

          ????? 正在生成 E:\Project\jbproject\ShotMessageModem\doc\deprecated-list.html...

          ????? 正在生成 ... ...

          ????? 正在構建所有類的索引 ...

          ????? 正在生成 E:\Project\jbproject\ShotMessageModem\doc\allclasses-frame.html...

          ????? 正在生成 E:\Project\jbproject\ShotMessageModem\doc\allclasses-noframe.html...

          ????? 正在生成 E:\Project\jbproject\ShotMessageModem\doc\index.html...

          ????? 正在生成 E:\Project\jbproject\ShotMessageModem\doc\overview-summary.html...

          ????? 正在生成 E:\Project\jbproject\ShotMessageModem\doc\help-doc.html...

          ????? 正在生成 E:\Project\jbproject\ShotMessageModem\doc\stylesheet.css...

          ????? 注意:可能覆蓋將來的標準標記的自定義標記: @todo 。為了避免出現可能的覆蓋,請在自定義標記名稱中至少使用一個句點字符 (.)

          ????? 注意:未找到的自定義標記: ? @todo

          3 、 Eclipse

          用法:

          Select Project > Generate Javadoc from the menu bar or

          Open the Export wizard by doing one of the following:

          • Selecting Export from the selection's pop-up menu or
          • Selecting File > Export from the menu bar.

          In the resulting dialog, select Javadoc from the list and press Finish.

          ?

          Console 窗口顯示的 javadoc 日志如下:

          Loading source files for package org.anymobile.gateway...

          Constructing Javadoc information...

          Standard Doclet version 1.4.2_02

          Generating E:\Project\eclipse\GSMGateway\docs\constant-values.html...

          ... ...

          Building tree for all the packages and classes...

          Generating E:\Project\eclipse\GSMGateway\docs\org\anymobile\gateway\class-use\Globals.html...

          ... ...

          Building index for all the packages and classes...

          Generating E:\Project\eclipse\GSMGateway\docs\overview-tree.html...

          ... ...

          Building index for all classes...

          Generating E:\Project\eclipse\GSMGateway\docs\allclasses-frame.html...

          Generating E:\Project\eclipse\GSMGateway\docs\allclasses-noframe.html...

          Generating E:\Project\eclipse\GSMGateway\docs\index.html...

          Generating E:\Project\eclipse\GSMGateway\docs\packages.html...

          Generating E:\Project\eclipse\GSMGateway\docs\overview-summary.html...

          Generating E:\Project\eclipse\GSMGateway\docs\overview-frame.html...

          ... ...

          Generating E:\Project\eclipse\GSMGateway\docs\package-list...

          Generating E:\Project\eclipse\GSMGateway\docs\help-doc.html...

          Generating E:\Project\eclipse\GSMGateway\docs\stylesheet.css...

          ?

          文檔資料:

          Reference: How to Write Doc Comments for the Javadoc Tool

          ?????? http://java.sun.com/j2se/javadoc/writingdoccomments/index.html

          "Javadoc Tags" (Windows platforms)

          http://java.sun.com/j2se/1.4/docs/tooldocs/win32/javadoc.html#javadoctags

          Reference: Javadoc FAQ??????

          ?????? http://java.sun.com/j2se/javadoc/faq/index.html

          "javadoc ,在 Java 的注釋上做文章 "

          ?????? http://outinn.diy.myrice.com/book/javadoc/

          "Code Conventions for the JavaTM Programming Language"

          ?????? http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html

          "JavaDoc "

          ?????? http://supportweb.cs.bham.ac.uk/documentation/tutorials/docsystem/build/tutorials/javadoc/javadoc.html

          posted on 2006-12-04 15:10 Xu Jianxiang 閱讀(823) 評論(0)  編輯  收藏 所屬分類: Java Tech
          主站蜘蛛池模板: 永安市| 安徽省| 建宁县| 丘北县| 六安市| 阳泉市| 德昌县| 前郭尔| 余姚市| 黎川县| 广安市| 甘洛县| 东安县| 莱西市| 大丰市| 宁波市| 孝义市| 明水县| 专栏| 陵水| 会东县| 万载县| 车险| 梧州市| 淮安市| 黄陵县| 武汉市| 承德县| 玉林市| 清徐县| 汝阳县| 喀什市| 南澳县| 都匀市| 本溪| 岐山县| 蓬莱市| 林州市| 桃源县| 蕲春县| 万载县|