个人Java注释规范

使用Eclipse创建和改变注释步骤菜单栏Window-->Preferences-->Java-->Code Style-->Code Templates-->Comments


1,节点Files

 

2,节点Types

/**

 * @class: ${type_name}

 * @package: ${package_name}

 * @description: ${todo}

 * @author: [email protected] 

 * @date: ${date} ${time}

 * @version: 1.0

 */

 

3,节点Fields

/** 

 * 

 */

 

4,节点Constructors

/**  

 * @description: ${todo}

 * ${tags}

 * @author: [email protected]

 * @date: ${date} ${time}

 * @version: 1.0

 */

 

5,节点Methods

/** 

 * @method: ${enclosing_method}

 * @description: ${todo}

 * ${tags}

 * @return: ${return_type}

 * @author: [email protected] 

 * @date: ${date} ${time}

 * @version: 1.0

 */

 

6,节点Overriding methods

/* (非 Javadoc) 

*

title: ${enclosing_method}

 

*

description:

 

* ${tags} 

* ${see_to_overridden} 

*/

 

7,节点Delegate methods

/** 

* ${tags} 

* ${see_to_target} 

*/ 

 

8,节点Getters

 

9,节点Setters

你可能感兴趣的:(eclipse)