1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.rendering.wikimodel; |
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
@version |
27 |
|
@since |
28 |
|
|
|
|
| 32.3% |
Uncovered Elements: 109 (161) |
Complexity: 60 |
Complexity Density: 0.6 |
|
29 |
|
public class EventDumpListener extends PrintTextListener |
30 |
|
{ |
31 |
|
private int fDepth; |
32 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
33 |
1 |
public EventDumpListener(IWikiPrinter printer)... |
34 |
|
{ |
35 |
1 |
super(printer); |
36 |
|
} |
37 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
38 |
0 |
@Override... |
39 |
|
public void beginDefinitionDescription() |
40 |
|
{ |
41 |
0 |
println("beginDefinitionDescription()"); |
42 |
0 |
inc(); |
43 |
|
} |
44 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
45 |
0 |
@Override... |
46 |
|
public void beginDefinitionList(WikiParameters params) |
47 |
|
{ |
48 |
0 |
println("beginDefinitionList([" + params + "])"); |
49 |
0 |
inc(); |
50 |
|
} |
51 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
52 |
0 |
@Override... |
53 |
|
public void beginDefinitionTerm() |
54 |
|
{ |
55 |
0 |
println("beginDefinitionTerm()"); |
56 |
0 |
inc(); |
57 |
|
} |
58 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
59 |
1 |
@Override... |
60 |
|
public void beginDocument(WikiParameters params) |
61 |
|
{ |
62 |
1 |
println("beginDocument([" + params + "])"); |
63 |
1 |
inc(); |
64 |
|
} |
65 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
66 |
3 |
@Override... |
67 |
|
public void beginFormat(WikiFormat format) |
68 |
|
{ |
69 |
3 |
println("beginFormat(" + format + ")"); |
70 |
3 |
inc(); |
71 |
|
} |
72 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
73 |
0 |
@Override... |
74 |
|
public void beginHeader(int headerLevel, WikiParameters params) |
75 |
|
{ |
76 |
0 |
println("beginHeader(" + headerLevel + ",[" + params + "])"); |
77 |
0 |
inc(); |
78 |
|
} |
79 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
80 |
0 |
@Override... |
81 |
|
public void beginInfoBlock(String infoType, WikiParameters params) |
82 |
|
{ |
83 |
0 |
println("beginInfoBlock(" + infoType + ",[" + params + "])"); |
84 |
0 |
inc(); |
85 |
|
} |
86 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
87 |
0 |
@Override... |
88 |
|
public void beginList(WikiParameters params, boolean ordered) |
89 |
|
{ |
90 |
0 |
println("beginList([" + params + "], ordered=" + ordered + ")"); |
91 |
0 |
inc(); |
92 |
|
} |
93 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
94 |
0 |
@Override... |
95 |
|
public void beginListItem() |
96 |
|
{ |
97 |
0 |
println("beginListItem()"); |
98 |
0 |
inc(); |
99 |
|
} |
100 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
101 |
2 |
@Override... |
102 |
|
public void beginParagraph(WikiParameters params) |
103 |
|
{ |
104 |
2 |
println("beginParagraph([" + params + "])"); |
105 |
2 |
inc(); |
106 |
|
} |
107 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
108 |
4 |
@Override... |
109 |
|
public void beginPropertyBlock(String propertyUri, boolean doc) |
110 |
|
{ |
111 |
4 |
println("beginPropertyBlock('" + propertyUri + "',doc=" + doc + ")"); |
112 |
4 |
inc(); |
113 |
|
} |
114 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
115 |
0 |
@Override... |
116 |
|
public void beginPropertyInline(String str) |
117 |
|
{ |
118 |
0 |
println("beginPropertyInline('" + str + "')"); |
119 |
0 |
inc(); |
120 |
|
} |
121 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
122 |
0 |
@Override... |
123 |
|
public void beginQuotation(WikiParameters params) |
124 |
|
{ |
125 |
0 |
println("beginQuotation([" + params + "])"); |
126 |
0 |
inc(); |
127 |
|
} |
128 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
129 |
0 |
@Override... |
130 |
|
public void beginQuotationLine() |
131 |
|
{ |
132 |
0 |
println("beginQuotationLine()"); |
133 |
0 |
inc(); |
134 |
|
} |
135 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
136 |
1 |
@Override... |
137 |
|
public void beginSection( |
138 |
|
int docLevel, |
139 |
|
int headerLevel, |
140 |
|
WikiParameters params) |
141 |
|
{ |
142 |
1 |
println("beginSection([" + docLevel + "])"); |
143 |
1 |
inc(); |
144 |
|
} |
145 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
146 |
1 |
@Override... |
147 |
|
public void beginSectionContent( |
148 |
|
int docLevel, |
149 |
|
int headerLevel, |
150 |
|
WikiParameters params) |
151 |
|
{ |
152 |
1 |
println("beginSectionContent([" + docLevel + "])"); |
153 |
1 |
inc(); |
154 |
|
} |
155 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
156 |
0 |
@Override... |
157 |
|
public void beginTable(WikiParameters params) |
158 |
|
{ |
159 |
0 |
println("beginTable([" + params + "])"); |
160 |
0 |
inc(); |
161 |
|
} |
162 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
163 |
0 |
@Override... |
164 |
|
public void beginTableCell(boolean tableHead, WikiParameters params) |
165 |
|
{ |
166 |
0 |
println("beginTableCell(" + tableHead + ", [" + params + "])"); |
167 |
0 |
inc(); |
168 |
|
} |
169 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
170 |
0 |
@Override... |
171 |
|
public void beginTableRow(WikiParameters params) |
172 |
|
{ |
173 |
0 |
println("beginTableRow([" + params + "])"); |
174 |
0 |
inc(); |
175 |
|
} |
176 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
177 |
12 |
private void dec()... |
178 |
|
{ |
179 |
12 |
fDepth--; |
180 |
|
} |
181 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
182 |
0 |
@Override... |
183 |
|
protected void endBlock() |
184 |
|
{ |
185 |
0 |
dec(); |
186 |
0 |
println("endBlock()"); |
187 |
|
} |
188 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
189 |
0 |
@Override... |
190 |
|
public void endDefinitionDescription() |
191 |
|
{ |
192 |
0 |
dec(); |
193 |
0 |
println("endDefinitionDescription()"); |
194 |
|
} |
195 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
196 |
0 |
@Override... |
197 |
|
public void endDefinitionList(WikiParameters params) |
198 |
|
{ |
199 |
0 |
dec(); |
200 |
0 |
println("endDefinitionList([" + params + "])"); |
201 |
|
} |
202 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
203 |
0 |
@Override... |
204 |
|
public void endDefinitionTerm() |
205 |
|
{ |
206 |
0 |
dec(); |
207 |
0 |
println("endDefinitionTerm()"); |
208 |
|
} |
209 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
210 |
1 |
@Override... |
211 |
|
public void endDocument(WikiParameters params) |
212 |
|
{ |
213 |
1 |
dec(); |
214 |
1 |
println("endDocument([" + params + "])"); |
215 |
|
} |
216 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
217 |
3 |
@Override... |
218 |
|
public void endFormat(WikiFormat format) |
219 |
|
{ |
220 |
3 |
dec(); |
221 |
3 |
println("endFormat(" + format + ")"); |
222 |
|
} |
223 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
224 |
0 |
@Override... |
225 |
|
public void endHeader(int headerLevel, WikiParameters params) |
226 |
|
{ |
227 |
0 |
dec(); |
228 |
0 |
println("endHeader(" + headerLevel + ", [" + params + "])"); |
229 |
|
} |
230 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
231 |
0 |
@Override... |
232 |
|
public void endInfoBlock(String infoType, WikiParameters params) |
233 |
|
{ |
234 |
0 |
dec(); |
235 |
0 |
println("endInfoBlock(" + infoType + ", [" + params + "])"); |
236 |
|
} |
237 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
238 |
0 |
@Override... |
239 |
|
public void endList(WikiParameters params, boolean ordered) |
240 |
|
{ |
241 |
0 |
dec(); |
242 |
0 |
println("endList([" + params + "], ordered=" + ordered + ")"); |
243 |
|
} |
244 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
245 |
0 |
@Override... |
246 |
|
public void endListItem() |
247 |
|
{ |
248 |
0 |
dec(); |
249 |
0 |
println("endListItem()"); |
250 |
|
} |
251 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
252 |
2 |
@Override... |
253 |
|
public void endParagraph(WikiParameters params) |
254 |
|
{ |
255 |
2 |
dec(); |
256 |
2 |
println("endParagraph([" + params + "])"); |
257 |
|
} |
258 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
259 |
4 |
@Override... |
260 |
|
public void endPropertyBlock(String propertyUri, boolean doc) |
261 |
|
{ |
262 |
4 |
dec(); |
263 |
4 |
println("endPropertyBlock('" + propertyUri + "', doc=" + doc + ")"); |
264 |
|
} |
265 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
266 |
0 |
@Override... |
267 |
|
public void endPropertyInline(String inlineProperty) |
268 |
|
{ |
269 |
0 |
dec(); |
270 |
0 |
println("endPropertyInline('" + inlineProperty + "')"); |
271 |
|
} |
272 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
273 |
0 |
@Override... |
274 |
|
public void endQuotation(WikiParameters params) |
275 |
|
{ |
276 |
0 |
dec(); |
277 |
0 |
println("endQuotation([" + params + "])"); |
278 |
|
} |
279 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
280 |
0 |
@Override... |
281 |
|
public void endQuotationLine() |
282 |
|
{ |
283 |
0 |
dec(); |
284 |
0 |
println("endQuotationLine()"); |
285 |
|
} |
286 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
287 |
1 |
@Override... |
288 |
|
public void endSection(int docLevel, int headerLevel, WikiParameters params) |
289 |
|
{ |
290 |
1 |
dec(); |
291 |
1 |
println("endSection([" + docLevel + "])"); |
292 |
|
} |
293 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
294 |
1 |
@Override... |
295 |
|
public void endSectionContent( |
296 |
|
int docLevel, |
297 |
|
int headerLevel, |
298 |
|
WikiParameters params) |
299 |
|
{ |
300 |
1 |
dec(); |
301 |
1 |
println("endSectionContent([" + docLevel + "])"); |
302 |
|
} |
303 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
304 |
0 |
@Override... |
305 |
|
public void endTable(WikiParameters params) |
306 |
|
{ |
307 |
0 |
dec(); |
308 |
0 |
println("endTable([" + params + "])"); |
309 |
|
} |
310 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
311 |
0 |
@Override... |
312 |
|
public void endTableCell(boolean tableHead, WikiParameters params) |
313 |
|
{ |
314 |
0 |
dec(); |
315 |
0 |
println("endTableCell(" + tableHead + ", [" + params + "])"); |
316 |
|
} |
317 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
318 |
0 |
@Override... |
319 |
|
public void endTableRow(WikiParameters params) |
320 |
|
{ |
321 |
0 |
dec(); |
322 |
0 |
println("endTableRow([" + params + "])"); |
323 |
|
} |
324 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
325 |
12 |
private void inc()... |
326 |
|
{ |
327 |
12 |
fDepth++; |
328 |
|
} |
329 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
330 |
0 |
@Override... |
331 |
|
public void onEmptyLines(int count) |
332 |
|
{ |
333 |
0 |
println("onEmptyLines(" + count + ")"); |
334 |
|
} |
335 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
336 |
0 |
@Override... |
337 |
|
public void onEscape(String str) |
338 |
|
{ |
339 |
0 |
println("onEscape('" + str + "')"); |
340 |
|
} |
341 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
342 |
0 |
@Override... |
343 |
|
public void onExtensionBlock(String extensionName, WikiParameters params) |
344 |
|
{ |
345 |
0 |
println("onExtensionBlock('" + extensionName + "', [" + params + "])"); |
346 |
|
} |
347 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
348 |
0 |
@Override... |
349 |
|
public void onExtensionInline(String extensionName, WikiParameters params) |
350 |
|
{ |
351 |
0 |
println("onExtensionInline('" + extensionName + "', [" + params + "])"); |
352 |
|
} |
353 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
354 |
0 |
@Override... |
355 |
|
public void onHorizontalLine(WikiParameters params) |
356 |
|
{ |
357 |
0 |
println("onHorizontalLine([" + params + "])"); |
358 |
|
} |
359 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
360 |
0 |
@Override... |
361 |
|
public void onLineBreak() |
362 |
|
{ |
363 |
0 |
println("onLineBreak()"); |
364 |
|
} |
365 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
366 |
0 |
@Override... |
367 |
|
public void onMacroBlock( |
368 |
|
String macroName, |
369 |
|
WikiParameters params, |
370 |
|
String content) |
371 |
|
{ |
372 |
0 |
println("onMacroBlock('" |
373 |
|
+ macroName |
374 |
|
+ "', " |
375 |
|
+ params |
376 |
|
+ ", '" |
377 |
|
+ content |
378 |
|
+ "')"); |
379 |
|
} |
380 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
381 |
0 |
@Override... |
382 |
|
public void onMacroInline( |
383 |
|
String macroName, |
384 |
|
WikiParameters params, |
385 |
|
String content) |
386 |
|
{ |
387 |
0 |
println("onMacroInline('" |
388 |
|
+ macroName |
389 |
|
+ "', " |
390 |
|
+ params |
391 |
|
+ ", '" |
392 |
|
+ content |
393 |
|
+ "')"); |
394 |
|
} |
395 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
396 |
0 |
@Override... |
397 |
|
public void onNewLine() |
398 |
|
{ |
399 |
0 |
println("onNewLine()"); |
400 |
|
} |
401 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
402 |
0 |
@Override... |
403 |
|
public void onReference(String ref) |
404 |
|
{ |
405 |
0 |
println("onReference('" + ref + "')"); |
406 |
|
} |
407 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
408 |
1 |
@Override... |
409 |
|
public void onSpace(String str) |
410 |
|
{ |
411 |
1 |
println("onSpace('" + str + "')"); |
412 |
|
} |
413 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
414 |
0 |
@Override... |
415 |
|
public void onSpecialSymbol(String str) |
416 |
|
{ |
417 |
0 |
println("onSpecialSymbol('" + str + "')"); |
418 |
|
} |
419 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
420 |
0 |
@Override... |
421 |
|
public void onTableCaption(String str) |
422 |
|
{ |
423 |
0 |
println("onTableCaption('" + str + "')"); |
424 |
|
} |
425 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
426 |
0 |
@Override... |
427 |
|
public void onVerbatimBlock(String str, WikiParameters params) |
428 |
|
{ |
429 |
0 |
println("onVerbatimBlock('" + str + "')"); |
430 |
|
} |
431 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
432 |
0 |
@Override... |
433 |
|
public void onVerbatimInline(String str, WikiParameters params) |
434 |
|
{ |
435 |
0 |
println("onVerbatimInline('" + str + "')"); |
436 |
|
} |
437 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
438 |
2 |
@Override... |
439 |
|
public void onWord(String str) |
440 |
|
{ |
441 |
2 |
println("onWord('" + str + "')"); |
442 |
|
} |
443 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
444 |
27 |
@Override... |
445 |
|
protected void println(String str) |
446 |
|
{ |
447 |
140 |
for (int i = 0; i < fDepth; i++) { |
448 |
113 |
super.print(" "); |
449 |
|
} |
450 |
27 |
super.println(str); |
451 |
|
} |
452 |
|
} |