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 > |
附件列表
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。