eclipse注释模板
学校注释模板
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57 |
<? xml version = "1.0" encoding = "UTF-8" standalone = "no" ?>< templates >< template
autoinsert = "false" context = "typecomment_context" deleted = "false" description = "Comment for created types" enabled = "true" id = "org.eclipse.jdt.ui.text.codetemplates.typecomment"
name = "typecomment" > /** * 项目名称:${project_name} * 类名称:${type_name} * 类描述: * 创建人:王少帅 * 创建时间:${date}
${time} * @version */</ template >< template
autoinsert = "false" context = "constructorcomment_context" deleted = "false" description = "Comment for created constructors" enabled = "true" id = "org.eclipse.jdt.ui.text.codetemplates.constructorcomment"
name = "constructorcomment" > /** * 创建一个新的实例 ${enclosing_type}. * * ${tags} */ </ template >< template
autoinsert = "true" context = "settercomment_context" deleted = "false" description = "Comment for setter method" enabled = "true" id = "org.eclipse.jdt.ui.text.codetemplates.settercomment"
name = "settercomment" > /** * @param ${param} the ${bare_field_name} to
set */ </ template >< template
autoinsert = "true" context = "delegatecomment_context" deleted = "false" description = "Comment for delegate methods" enabled = "true" id = "org.eclipse.jdt.ui.text.codetemplates.delegatecomment"
name = "delegatecomment" > /** * ${tags} * ${see_to_target} */ </ template >< template
autoinsert = "false" context = "methodcomment_context" deleted = "false" description = "Comment for non-overriding methods" enabled = "true" id = "org.eclipse.jdt.ui.text.codetemplates.methodcomment"
name = "methodcomment" > /** * ${enclosing_method}(这里用一句话描述这个方法的作用)
* @param name * @return ${return_type} * @Exception */ </ template >< template
autoinsert = "false" context = "filecomment_context" deleted = "false" description = "Comment for created Java files" enabled = "true" id = "org.eclipse.jdt.ui.text.codetemplates.filecomment"
name = "filecomment" > /** * 文件名:${file_name} * * 版本信息: * 日期:${date} * Copyright 足下 Corporation ${year}
* 版权所有 * */ </ template >< template
autoinsert = "true" context = "overridecomment_context" deleted = "false" description = "Comment for overriding methods" enabled = "true" id = "org.eclipse.jdt.ui.text.codetemplates.overridecomment"
name = "overridecomment" > /** * (non-Javadoc) * ${see_to_overridden} */ </ template >< template
autoinsert = "false" context = "gettercomment_context" deleted = "false" description = "Comment for getter method" enabled = "true" id = "org.eclipse.jdt.ui.text.codetemplates.gettercomment"
name = "gettercomment" > /** * ${bare_field_name} * @return the ${bare_field_name}
*/ </ template >< template
autoinsert = "false" context = "fieldcomment_context" deleted = "false" description = "Comment for fields" enabled = "true" id = "org.eclipse.jdt.ui.text.codetemplates.fieldcomment"
name = "fieldcomment" > /** * ${field}:${todo}(用一句话描述这个变量表示什么)
* * @since Ver 1.1 */ </ template ></ templates > |
文件为:见附件
附件列表
作者:少帅
出处:少帅的博客--http://www.cnblogs.com/wang3680
您的支持是对博主最大的鼓励,感谢您的认真阅读。
本文版权归作者所有,欢迎转载,但请保留该声明。
![](https://images.cnblogs.com/cnblogs_com/wang3680/1880988/o_201113031241%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20201113111211.jpg)
![](https://images.cnblogs.com/cnblogs_com/wang3680/1881010/o_201113034037%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20201113113928.png)