zoukankan      html  css  js  c++  java
  • myeclipse自定义java注释

    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} 
    */

  • 相关阅读:
    流程控制语句
    第一周考点
    8.6
    8.5
    自用论文排版组合 = LyX2.2.2 + TeXLive2016
    解析几何图解
    概率论与数理统计图解.tex
    硕士研究生入学考试复试试卷答案.tex
    概率论与数理统计图解
    一月7日
  • 原文地址:https://www.cnblogs.com/huideng/p/4500821.html
Copyright © 2011-2022 走看看