-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathjautodoc_templates.xml
237 lines (235 loc) · 7.36 KB
/
jautodoc_templates.xml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<?xml version="1.0" standalone="yes"?>
<templates>
<template kind="1" name="Type.Factory" default="false" signature="false">
<regex>(.+)Factory</regex>
<example>MessageFactory</example>
<text>/**
* A factory for creating ${e.g(1)} objects.
*/</text>
<template kind="3" name="Type.Factory.Method.create" default="false" signature="false">
<regex>create(.+)</regex>
<example>createMessage</example>
<text>/**
* Creates a new ${e.p().g(1)} object.
*/</text>
</template>
</template>
<template kind="1" name="Type.Observer" default="false" signature="false">
<regex>(.+)Observer</regex>
<example>ImageObserver</example>
<text>/**
* An asynchronous update interface for receiving notifications
* about ${e.g(1)} information as the ${e.g(1)} is constructed.
*/</text>
<template kind="3" name="Type.Observer.Method.update" default="false" signature="false">
<regex>.*</regex>
<example>imageUpdate</example>
<text>/**
* This method is called when information about an ${e.p().g(1)}
* which was previously requested using an asynchronous
* interface becomes available.
*/</text>
</template>
</template>
<template kind="1" name="Type.Listener" default="false" signature="false">
<regex>(.+)Listener</regex>
<example>AutodocListener</example>
<text>/**
* The listener interface for receiving ${e.g(1).fl()} events.
* The class that is interested in processing a ${e.g(1).fl()}
* event implements this interface, and the object created
* with that class is registered with a component using the
* component's <code>add${e.g(1)}Listener<code> method. When
* the ${e.g(1).fl()} event occurs, that object's appropriate
* method is invoked.
*
* @see ${e.g(1)}Event
*/</text>
<template kind="3" name="Type.Listener.Method.created" default="false" signature="false">
<regex>(.*)Created</regex>
<example>autodocCreated</example>
<text>/**
* Invoked when ${e.g(1).rs()} is created.
*/</text>
</template>
<template kind="3" name="Type.Listener.Method.updated" default="false" signature="false">
<regex>(.*)Updated</regex>
<example>autodocUpdated</example>
<text>/**
* Invoked when ${e.g(1).rs()} update occurs.
*/</text>
</template>
</template>
<template kind="1" name="Type.Default" default="true" signature="false">
<regex>.+</regex>
<example>ExampleType</example>
<text>/**
## type: class|interface|enum
* The ${e.getType().fu()} ${e}.
*/</text>
</template>
<template kind="2" name="Field.fPrefix" default="false" signature="false">
<regex>f([A-Z].+)</regex>
<example>fExampleMember</example>
<text>/**
* The ${e.g(1).rsfl()}.
*/</text>
</template>
<template kind="2" name="Field.thePrefix" default="false" signature="false">
<regex>the[A-Z].+</regex>
<example>theNumberOfQuestions</example>
<text>/**
* ${e.rsfu()}.
*/</text>
</template>
<template kind="2" name="Field.Default" default="true" signature="false">
<regex>.+</regex>
<example>numberOfQuestions</example>
<text>/**
#if(${e.isStatic()} && ${e.isFinal()})
* The Constant ${e}.
#else
* The ${e.rs()}.
#end
*/</text>
</template>
<template kind="3" name="Method.getInstance" default="false" signature="false">
<regex>getInstance</regex>
<example>getInstance</example>
<text>/**
* Gets the single instance of ${e.getDeclaringType()}.
*
* @return single instance of ${e.getDeclaringType()}
*/</text>
</template>
<template kind="3" name="Method.Getter" default="false" signature="true">
<regex>\S+ get(\S+)\(.*\)</regex>
<example>int getNumberOfQuestions()</example>
<text>/**
* Gets the ${e.g(1).rsfl()}.
*
* @return the ${e.g(1).rsfl()}
*/</text>
</template>
<template kind="3" name="Method.Setter" default="false" signature="true">
<regex>void set(\S+)\([^,]+ ([^,]+)\)</regex>
<example>void setNumberOfQuestions(int number)</example>
<text>/**
* Sets the ${e.g(1).rsfl()}.
*
* @param ${e.g(2)} the new ${e.g(1).rsfl()}
*/</text>
</template>
<template kind="3" name="Method.boolean Getter" default="false" signature="true">
<regex>boolean is(.+)\(.*\)</regex>
<example>boolean isBlue()</example>
<text>/**
* Checks if is ${e.g(1).rsfl()}.
*
* @return true, if is ${e.g(1).rsfl()}
*/</text>
</template>
<template kind="3" name="Method.Main-Method" default="false" signature="true">
<regex>void main\(String\[\] (\S+)\)</regex>
<example>void main(String[] args)</example>
<text>/**
* The main method.
*
* @param ${e.g(1)} the arguments
*/</text>
</template>
<template kind="3" name="Method.Constructor" default="false" signature="true">
<regex>(\S+)\(.*\)</regex>
<example>SimpleClass()</example>
<text>/**
* Instantiates a new ${e.g(1).rsfl()}.
*/</text>
</template>
<template kind="3" name="Method.Returns void" default="false" signature="true">
<regex>void (.+)\(.*\)</regex>
<example>void doSomething()</example>
<text>/**
* ${e.g(1).rsfu()}.
*/</text>
</template>
<template kind="3" name="Method.Returns boolean" default="false" signature="true">
<regex>boolean (\S+)\(.*\)</regex>
<example>boolean doSomething(int parameter)</example>
<text>/**
* ${e.g(1).rsfu()}.
*
* @return true, if successful
*/</text>
</template>
<template kind="3" name="Method.Returns other" default="false" signature="true">
<regex>(\S+) (\S+)\(.*\)</regex>
<example>ReturnValue calculateSomething()</example>
<text>/**
* ${e.g(2).rsfu()}.
*
* @return the ${e.g(1).rsfl()}
*/</text>
</template>
<template kind="3" name="Method.Default" default="true" signature="false">
<regex>.+</regex>
<example>doSomething</example>
<text>/**
## Actually this is not used, because there
## are templates for different return types
* ${e.rsfu()}.
*/</text>
</template>
<template kind="4" name="Parameter.Generic Type Parameter" default="false" signature="false">
<regex><(.+)></regex>
<example><E></example>
<text>/**
#if(${e.g(1)} == 'E')
* @param ${e} the element type
#elseif(${e.g(1)} == 'K')
* @param ${e} the name type
#elseif(${e.g(1)} == 'N')
* @param ${e} the number type
#elseif(${e.g(1)} == 'V')
* @param ${e} the value type
#else
* @param ${e} the generic type
#end
*/</text>
</template>
<template kind="4" name="Parameter.compUnit" default="false" signature="false">
<regex>compUnit</regex>
<example>compUnit</example>
<text>/**
## Example for shortcuts
* @param ${e} the compilation unit
*/</text>
</template>
<template kind="4" name="Parameter.pPrefix" default="false" signature="false">
<regex>p([A-Z].+)</regex>
<example>pField</example>
<text>/**
* @param ${e} the ${e.g(1).rsfl()}
*/</text>
</template>
<template kind="4" name="Parameter.Default" default="true" signature="false">
<regex>.+</regex>
<example>simpleParameter</example>
<text>/**
* @param ${e} the ${e.rsfl()}
*/</text>
</template>
<template kind="5" name="Exception.IOException" default="false" signature="false">
<regex>IOException</regex>
<example>IOException</example>
<text>/**
* @throws ${e} Signals that an I/O exception has occurred.
*/</text>
</template>
<template kind="5" name="Exception.Default" default="true" signature="false">
<regex>.+</regex>
<example>ExampleException</example>
<text>/**
* @throws ${e} the ${e.sfl()}
*/</text>
</template>
</templates>