隨筆 - 72  文章 - 28  trackbacks - 0
          <2015年6月>
          31123456
          78910111213
          14151617181920
          21222324252627
          2829301234
          567891011

          常用鏈接

          留言簿(4)

          隨筆分類(66)

          隨筆檔案(72)

          文章檔案(19)

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          myeclipse自定義java注釋:

          Window->Preference->Java->Code Style->Code Template

          然后展開Comments節點就是所有需設置注釋的元素

          -----------------

          文件 (Files) 注釋標簽:

          /** 

          @Project : ${project_name}

          @Title : ${file_name}

          @Package ${package_name}

          @Description : ${todo}

          @author shenyanghong ahong2011@gmail.com

          @date ${date} ${time}

          @Copyright : ${year} www.1000chi.com Inc. All rights reserved.

          @version V1.0 

          */

          類 (Types) 注釋標簽(類的注釋):

          /**

            * @ClassName ${type_name}

            * @Description ${todo}

            * @author shenyanghong ahong2011@gmail.com

            * @date ${date}

            * ${tags}

          */

          字段 (Fields) 注釋標簽:

          /** 
          * @Fields ${field} : ${todo}
          */ 


          構造函數標簽:

          /** 
          * <p>Title: </p> 
          * <p>Description: </p> 
          * ${tags} 
          */

           

          方法 (Constructor & Methods) 標簽:

          /** 
          * @Title: ${enclosing_method} 
          * @Description: ${todo}
          * @param ${tags}    
          設定文件 
          * @return ${return_type}    
          返回類型 
          * @throws 
          */

          覆蓋方法 (Overriding Methods) 標簽:

          /* ( 非 Javadoc) 
          * <p>Title: ${enclosing_method}</p> 
          * <p>Description: </p> 
          * ${tags} 
          * ${see_to_overridden} 
          */

           

          代表方法 (Delegate Methods) 標簽:

          /** 
          * ${tags} 
          * ${see_to_target} 
          */ 


          getter
           方法標簽:

          /** 
          * @return ${bare_field_name} 
          */

          setter 方法標簽:

          /** 
          * @param ${param} 
          要設置的 ${bare_field_name} 
          */

          posted on 2015-06-30 10:38 kelly 閱讀(257) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 鄂州市| 中方县| 日喀则市| 大渡口区| 墨脱县| 大悟县| 富源县| 新乡县| 镇雄县| 华蓥市| 武冈市| 筠连县| 汉寿县| 泰顺县| 绥化市| 安泽县| 永昌县| 十堰市| 运城市| 报价| 安化县| 确山县| 搜索| 高唐县| 洛隆县| 平潭县| 措勤县| 井陉县| 赣州市| 巫山县| 仙游县| 湟源县| 锡林郭勒盟| 伊吾县| 平陆县| 根河市| 呼伦贝尔市| 长丰县| 漠河县| 梅河口市| 沙洋县|