myeclipse自定義java注釋:
Window->Preference->Java->Code Style->Code Template
然后展開Comments節(jié)點就是所有需設(shè)置注釋的元素
-----------------
文件 (Files) 注釋標(biāo)簽:
/**
* @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) 注釋標(biāo)簽(類的注釋):
/**
* @ClassName ${type_name}
* @Description ${todo}
* @author shenyanghong ahong2011@gmail.com
* @date ${date}
* ${tags}
*/
字段 (Fields) 注釋標(biāo)簽:
/**
* @Fields ${field} : ${todo}
*/
構(gòu)造函數(shù)標(biāo)簽:
/**
* <p>Title: </p>
* <p>Description: </p>
* ${tags}
*/
方法 (Constructor & Methods) 標(biāo)簽:
/**
* @Title: ${enclosing_method}
* @Description: ${todo}
* @param ${tags} 設(shè)定文件
* @return ${return_type} 返回類型
* @throws
*/
覆蓋方法 (Overriding Methods) 標(biāo)簽:
/* ( 非 Javadoc)
* <p>Title: ${enclosing_method}</p>
* <p>Description: </p>
* ${tags}
* ${see_to_overridden}
*/
代表方法 (Delegate Methods) 標(biāo)簽:
/**
* ${tags}
* ${see_to_target}
*/
getter 方法標(biāo)簽:
/**
* @return ${bare_field_name}
*/
setter 方法標(biāo)簽:
/**
* @param ${param} 要設(shè)置的 ${bare_field_name}
*/
posted on 2015-06-30 10:38
kelly 閱讀(253)
評論(0) 編輯 收藏