1 |
|
|
2 |
|
|
3 |
|
package org.json.simple.parser; |
4 |
|
|
|
|
| 68.2% |
Uncovered Elements: 100 (314) |
Complexity: 94 |
Complexity Density: 0.38 |
|
5 |
|
class Yylex |
6 |
|
{ |
7 |
|
|
8 |
|
|
9 |
|
public static final int YYEOF = -1; |
10 |
|
|
11 |
|
|
12 |
|
private static final int ZZ_BUFFERSIZE = 16384; |
13 |
|
|
14 |
|
|
15 |
|
public static final int YYINITIAL = 0; |
16 |
|
|
17 |
|
public static final int STRING_BEGIN = 2; |
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
private static final int ZZ_LEXSTATE[] = { 0, 0, 1, 1 }; |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
private static final String ZZ_CMAP_PACKED = "\11\0\1\7\1\7\2\0\1\7\22\0\1\7\1\0\1\11\10\0" |
30 |
|
+ "\1\6\1\31\1\2\1\4\1\12\12\3\1\32\6\0\4\1\1\5" |
31 |
|
+ "\1\1\24\0\1\27\1\10\1\30\3\0\1\22\1\13\2\1\1\21" |
32 |
|
+ "\1\14\5\0\1\23\1\0\1\15\3\0\1\16\1\24\1\17\1\20" |
33 |
|
+ "\5\0\1\25\1\0\1\26\uff82\0"; |
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
private static final char[] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED); |
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
private static final int[] ZZ_ACTION = zzUnpackAction(); |
44 |
|
|
45 |
|
private static final String ZZ_ACTION_PACKED_0 = "\2\0\2\1\1\2\1\3\1\4\3\1\1\5\1\6" |
46 |
|
+ "\1\7\1\10\1\11\1\12\1\13\1\14\1\15\5\0" |
47 |
|
+ "\1\14\1\16\1\17\1\20\1\21\1\22\1\23\1\24" |
48 |
|
+ "\1\0\1\25\1\0\1\25\4\0\1\26\1\27\2\0" + "\1\30"; |
49 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
50 |
12 |
private static int[] zzUnpackAction()... |
51 |
|
{ |
52 |
12 |
int[] result = new int[45]; |
53 |
12 |
int offset = 0; |
54 |
12 |
offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); |
55 |
12 |
return result; |
56 |
|
} |
57 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (13) |
Complexity: 3 |
Complexity Density: 0.33 |
|
58 |
12 |
private static int zzUnpackAction(String packed, int offset, int[] result)... |
59 |
|
{ |
60 |
12 |
int i = 0; |
61 |
12 |
int j = offset; |
62 |
12 |
int l = packed.length(); |
63 |
408 |
while (i < l) |
64 |
|
{ |
65 |
396 |
int count = packed.charAt(i++); |
66 |
396 |
int value = packed.charAt(i++); |
67 |
396 |
do |
68 |
540 |
result[j++] = value; |
69 |
540 |
while (--count > 0); |
70 |
|
} |
71 |
12 |
return j; |
72 |
|
} |
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
private static final int[] ZZ_ROWMAP = zzUnpackRowMap(); |
78 |
|
|
79 |
|
private static final String ZZ_ROWMAP_PACKED_0 = "\0\0\0\33\0\66\0\121\0\154\0\207\0\66\0\242" |
80 |
|
+ "\0\275\0\330\0\66\0\66\0\66\0\66\0\66\0\66" |
81 |
|
+ "\0\363\0\u010e\0\66\0\u0129\0\u0144\0\u015f\0\u017a\0\u0195" |
82 |
|
+ "\0\66\0\66\0\66\0\66\0\66\0\66\0\66\0\66" |
83 |
|
+ "\0\u01b0\0\u01cb\0\u01e6\0\u01e6\0\u0201\0\u021c\0\u0237\0\u0252" |
84 |
|
+ "\0\66\0\66\0\u026d\0\u0288\0\66"; |
85 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
86 |
12 |
private static int[] zzUnpackRowMap()... |
87 |
|
{ |
88 |
12 |
int[] result = new int[45]; |
89 |
12 |
int offset = 0; |
90 |
12 |
offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); |
91 |
12 |
return result; |
92 |
|
} |
93 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 2 |
Complexity Density: 0.29 |
|
94 |
12 |
private static int zzUnpackRowMap(String packed, int offset, int[] result)... |
95 |
|
{ |
96 |
12 |
int i = 0; |
97 |
12 |
int j = offset; |
98 |
12 |
int l = packed.length(); |
99 |
552 |
while (i < l) |
100 |
|
{ |
101 |
540 |
int high = packed.codePointAt(i++) << 16; |
102 |
540 |
result[j++] = high | packed.codePointAt(i++); |
103 |
|
} |
104 |
12 |
return j; |
105 |
|
} |
106 |
|
|
107 |
|
|
108 |
|
|
109 |
|
|
110 |
|
private static final int ZZ_TRANS[] = { 2, 2, 3, 4, 2, 2, 2, 5, 2, 6, 2, |
111 |
|
2, 7, 8, 2, 9, 2, 2, 2, 2, 2, 10, 11, 12, 13, 14, 15, 16, 16, 16, 16, |
112 |
|
16, 16, 16, 16, 17, 18, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, |
113 |
|
16, 16, 16, 16, 16, 16, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
114 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
115 |
|
-1, -1, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
116 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, 19, 20, -1, -1, -1, -1, |
117 |
|
-1, -1, -1, -1, -1, -1, -1, 20, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
118 |
|
-1, -1, -1, -1, -1, -1, -1, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
119 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
120 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 21, -1, -1, -1, -1, -1, -1, |
121 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
122 |
|
-1, 22, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
123 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, 23, -1, -1, -1, -1, -1, -1, -1, |
124 |
|
-1, -1, -1, -1, -1, 16, 16, 16, 16, 16, 16, 16, 16, -1, -1, 16, 16, |
125 |
|
16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, -1, -1, |
126 |
|
-1, -1, -1, -1, -1, -1, 24, 25, 26, 27, 28, 29, 30, 31, 32, -1, -1, |
127 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, |
128 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
129 |
|
-1, -1, -1, 34, 35, -1, -1, 34, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
130 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
131 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 36, -1, -1, -1, |
132 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
133 |
|
-1, -1, -1, -1, -1, -1, 37, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
134 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, -1, |
135 |
|
-1, -1, -1, -1, -1, -1, -1, -1, 39, -1, 39, -1, 39, -1, -1, -1, -1, |
136 |
|
-1, 39, 39, -1, -1, -1, -1, 39, 39, -1, -1, -1, -1, -1, -1, -1, -1, |
137 |
|
-1, -1, -1, 33, -1, 20, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
138 |
|
20, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 35, -1, -1, -1, |
139 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
140 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
141 |
|
-1, -1, -1, -1, -1, -1, 38, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
142 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, -1, |
143 |
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
144 |
|
-1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
145 |
|
42, -1, 42, -1, 42, -1, -1, -1, -1, -1, 42, 42, -1, -1, -1, -1, 42, |
146 |
|
42, -1, -1, -1, -1, -1, -1, -1, -1, -1, 43, -1, 43, -1, 43, -1, -1, |
147 |
|
-1, -1, -1, 43, 43, -1, -1, -1, -1, 43, 43, -1, -1, -1, -1, -1, -1, |
148 |
|
-1, -1, -1, 44, -1, 44, -1, 44, -1, -1, -1, -1, -1, 44, 44, -1, -1, |
149 |
|
-1, -1, 44, 44, -1, -1, -1, -1, -1, -1, -1, -1, }; |
150 |
|
|
151 |
|
|
152 |
|
private static final int ZZ_UNKNOWN_ERROR = 0; |
153 |
|
|
154 |
|
private static final int ZZ_NO_MATCH = 1; |
155 |
|
|
156 |
|
private static final int ZZ_PUSHBACK_2BIG = 2; |
157 |
|
|
158 |
|
|
159 |
|
private static final String ZZ_ERROR_MSG[] = { |
160 |
|
"Unkown internal scanner error", "Error: could not match input", |
161 |
|
"Error: pushback value was too large" }; |
162 |
|
|
163 |
|
|
164 |
|
|
165 |
|
|
166 |
|
private static final int[] ZZ_ATTRIBUTE = zzUnpackAttribute(); |
167 |
|
|
168 |
|
private static final String ZZ_ATTRIBUTE_PACKED_0 = "\2\0\1\11\3\1\1\11\3\1\6\11\2\1\1\11" |
169 |
|
+ "\5\0\10\11\1\0\1\1\1\0\1\1\4\0\2\11" + "\2\0\1\11"; |
170 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
171 |
12 |
private static int[] zzUnpackAttribute()... |
172 |
|
{ |
173 |
12 |
int[] result = new int[45]; |
174 |
12 |
int offset = 0; |
175 |
12 |
offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); |
176 |
12 |
return result; |
177 |
|
} |
178 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (13) |
Complexity: 3 |
Complexity Density: 0.33 |
|
179 |
12 |
private static int zzUnpackAttribute(String packed, int offset,... |
180 |
|
int[] result) |
181 |
|
{ |
182 |
12 |
int i = 0; |
183 |
12 |
int j = offset; |
184 |
12 |
int l = packed.length(); |
185 |
228 |
while (i < l) |
186 |
|
{ |
187 |
216 |
int count = packed.charAt(i++); |
188 |
216 |
int value = packed.charAt(i++); |
189 |
216 |
do |
190 |
540 |
result[j++] = value; |
191 |
540 |
while (--count > 0); |
192 |
|
} |
193 |
12 |
return j; |
194 |
|
} |
195 |
|
|
196 |
|
|
197 |
|
private java.io.Reader zzReader; |
198 |
|
|
199 |
|
|
200 |
|
private int zzState; |
201 |
|
|
202 |
|
|
203 |
|
private int zzLexicalState = YYINITIAL; |
204 |
|
|
205 |
|
|
206 |
|
|
207 |
|
|
208 |
|
|
209 |
|
private char zzBuffer[] = new char[ZZ_BUFFERSIZE]; |
210 |
|
|
211 |
|
|
212 |
|
private int zzMarkedPos; |
213 |
|
|
214 |
|
|
215 |
|
private int zzCurrentPos; |
216 |
|
|
217 |
|
|
218 |
|
private int zzStartRead; |
219 |
|
|
220 |
|
|
221 |
|
|
222 |
|
|
223 |
|
|
224 |
|
private int zzEndRead; |
225 |
|
|
226 |
|
|
227 |
|
private int yyline; |
228 |
|
|
229 |
|
|
230 |
|
private int yychar; |
231 |
|
|
232 |
|
|
233 |
|
|
234 |
|
|
235 |
|
|
236 |
|
private int yycolumn; |
237 |
|
|
238 |
|
|
239 |
|
|
240 |
|
|
241 |
|
private boolean zzAtBOL = true; |
242 |
|
|
243 |
|
|
244 |
|
private boolean zzAtEOF; |
245 |
|
|
246 |
|
|
247 |
|
private StringBuffer sb = new StringBuffer(); |
248 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
249 |
0 |
int getPosition()... |
250 |
|
{ |
251 |
0 |
return yychar; |
252 |
|
} |
253 |
|
|
254 |
|
|
255 |
|
|
256 |
|
|
257 |
|
|
258 |
|
@param |
259 |
|
|
260 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
261 |
224 |
Yylex(java.io.Reader in)... |
262 |
|
{ |
263 |
224 |
this.zzReader = in; |
264 |
|
} |
265 |
|
|
266 |
|
|
267 |
|
|
268 |
|
|
269 |
|
|
270 |
|
@param |
271 |
|
|
272 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
273 |
0 |
Yylex(java.io.InputStream in)... |
274 |
|
{ |
275 |
0 |
this(new java.io.InputStreamReader(in)); |
276 |
|
} |
277 |
|
|
278 |
|
|
279 |
|
|
280 |
|
|
281 |
|
@param |
282 |
|
|
283 |
|
@return |
284 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (13) |
Complexity: 3 |
Complexity Density: 0.33 |
|
285 |
12 |
private static char[] zzUnpackCMap(String packed)... |
286 |
|
{ |
287 |
12 |
char[] map = new char[0x10000]; |
288 |
12 |
int i = 0; |
289 |
12 |
int j = 0; |
290 |
552 |
while (i < 90) |
291 |
|
{ |
292 |
540 |
int count = packed.charAt(i++); |
293 |
540 |
char value = packed.charAt(i++); |
294 |
540 |
do |
295 |
786432 |
map[j++] = value; |
296 |
786432 |
while (--count > 0); |
297 |
|
} |
298 |
12 |
return map; |
299 |
|
} |
300 |
|
|
301 |
|
|
302 |
|
|
303 |
|
|
304 |
|
@return |
305 |
|
|
306 |
|
@exception |
307 |
|
|
308 |
|
|
|
|
| 61.3% |
Uncovered Elements: 12 (31) |
Complexity: 6 |
Complexity Density: 0.29 |
|
309 |
1771 |
private boolean zzRefill() throws java.io.IOException... |
310 |
|
{ |
311 |
|
|
312 |
|
|
313 |
1771 |
if (zzStartRead > 0) |
314 |
|
{ |
315 |
1547 |
System.arraycopy(zzBuffer, zzStartRead, zzBuffer, 0, |
316 |
|
zzEndRead - zzStartRead); |
317 |
|
|
318 |
|
|
319 |
1547 |
zzEndRead -= zzStartRead; |
320 |
1547 |
zzCurrentPos -= zzStartRead; |
321 |
1547 |
zzMarkedPos -= zzStartRead; |
322 |
1547 |
zzStartRead = 0; |
323 |
|
} |
324 |
|
|
325 |
|
|
326 |
1771 |
if (zzCurrentPos >= zzBuffer.length) |
327 |
|
{ |
328 |
|
|
329 |
0 |
char newBuffer[] = new char[zzCurrentPos * 2]; |
330 |
0 |
System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length); |
331 |
0 |
zzBuffer = newBuffer; |
332 |
|
} |
333 |
|
|
334 |
|
|
335 |
1771 |
int numRead = zzReader.read(zzBuffer, zzEndRead, |
336 |
|
zzBuffer.length - zzEndRead); |
337 |
|
|
338 |
1771 |
if (numRead > 0) |
339 |
|
{ |
340 |
1431 |
zzEndRead += numRead; |
341 |
1431 |
return false; |
342 |
|
} |
343 |
|
|
344 |
340 |
if (numRead == 0) |
345 |
|
{ |
346 |
0 |
int c = zzReader.read(); |
347 |
0 |
if (c == -1) |
348 |
|
{ |
349 |
0 |
return true; |
350 |
|
} |
351 |
|
else |
352 |
|
{ |
353 |
0 |
zzBuffer[zzEndRead++] = (char) c; |
354 |
0 |
return false; |
355 |
|
} |
356 |
|
} |
357 |
|
|
358 |
|
|
359 |
340 |
return true; |
360 |
|
} |
361 |
|
|
362 |
|
|
363 |
|
|
364 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
365 |
0 |
public final void yyclose() throws java.io.IOException... |
366 |
|
{ |
367 |
0 |
zzAtEOF = true; |
368 |
0 |
zzEndRead = zzStartRead; |
369 |
|
|
370 |
0 |
if (zzReader != null) |
371 |
0 |
zzReader.close(); |
372 |
|
} |
373 |
|
|
374 |
|
|
375 |
|
|
376 |
|
|
377 |
|
|
378 |
|
|
379 |
|
|
380 |
|
|
381 |
|
|
382 |
|
@param |
383 |
|
|
384 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (7) |
Complexity: 1 |
Complexity Density: 0.14 |
|
385 |
224 |
public final void yyreset(java.io.Reader reader)... |
386 |
|
{ |
387 |
224 |
zzReader = reader; |
388 |
224 |
zzAtBOL = true; |
389 |
224 |
zzAtEOF = false; |
390 |
224 |
zzEndRead = zzStartRead = 0; |
391 |
224 |
zzCurrentPos = zzMarkedPos = 0; |
392 |
224 |
yyline = yychar = yycolumn = 0; |
393 |
224 |
zzLexicalState = YYINITIAL; |
394 |
|
} |
395 |
|
|
396 |
|
|
397 |
|
|
398 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
399 |
0 |
public final int yystate()... |
400 |
|
{ |
401 |
0 |
return zzLexicalState; |
402 |
|
} |
403 |
|
|
404 |
|
|
405 |
|
|
406 |
|
|
407 |
|
@param |
408 |
|
|
409 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
410 |
1151836 |
public final void yybegin(int newState)... |
411 |
|
{ |
412 |
1151836 |
zzLexicalState = newState; |
413 |
|
} |
414 |
|
|
415 |
|
|
416 |
|
|
417 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
418 |
4551541 |
public final String yytext()... |
419 |
|
{ |
420 |
4551541 |
return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead); |
421 |
|
} |
422 |
|
|
423 |
|
|
424 |
|
|
425 |
|
|
426 |
|
|
427 |
|
|
428 |
|
@param |
429 |
|
|
430 |
|
|
431 |
|
|
432 |
|
@return |
433 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
434 |
0 |
public final char yycharat(int pos)... |
435 |
|
{ |
436 |
0 |
return zzBuffer[zzStartRead + pos]; |
437 |
|
} |
438 |
|
|
439 |
|
|
440 |
|
|
441 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
442 |
0 |
public final int yylength()... |
443 |
|
{ |
444 |
0 |
return zzMarkedPos - zzStartRead; |
445 |
|
} |
446 |
|
|
447 |
|
|
448 |
|
|
449 |
|
|
450 |
|
|
451 |
|
|
452 |
|
|
453 |
|
|
454 |
|
|
455 |
|
|
456 |
|
|
457 |
|
|
458 |
|
@param |
459 |
|
|
460 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.4 |
|
461 |
0 |
private void zzScanError(int errorCode)... |
462 |
|
{ |
463 |
0 |
String message; |
464 |
0 |
try |
465 |
|
{ |
466 |
0 |
message = ZZ_ERROR_MSG[errorCode]; |
467 |
|
} catch (ArrayIndexOutOfBoundsException e) |
468 |
|
{ |
469 |
0 |
message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; |
470 |
|
} |
471 |
|
|
472 |
0 |
throw new Error(message); |
473 |
|
} |
474 |
|
|
475 |
|
|
476 |
|
|
477 |
|
|
478 |
|
|
479 |
|
|
480 |
|
@param |
481 |
|
|
482 |
|
|
483 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
484 |
0 |
public void yypushback(int number)... |
485 |
|
{ |
486 |
0 |
if (number > yylength()) |
487 |
0 |
zzScanError(ZZ_PUSHBACK_2BIG); |
488 |
|
|
489 |
0 |
zzMarkedPos -= number; |
490 |
|
} |
491 |
|
|
492 |
|
|
493 |
|
|
494 |
|
|
495 |
|
|
496 |
|
@return |
497 |
|
@exception |
498 |
|
|
499 |
|
|
|
|
| 65.5% |
Uncovered Elements: 59 (171) |
Complexity: 59 |
Complexity Density: 0.38 |
|
500 |
9342761 |
public Yytoken yylex() throws java.io.IOException, ParseException... |
501 |
|
{ |
502 |
9342761 |
int zzInput; |
503 |
9342761 |
int zzAction; |
504 |
|
|
505 |
|
|
506 |
9342761 |
int zzCurrentPosL; |
507 |
9342761 |
int zzMarkedPosL; |
508 |
9342761 |
int zzEndReadL = zzEndRead; |
509 |
9342761 |
char[] zzBufferL = zzBuffer; |
510 |
9342761 |
char[] zzCMapL = ZZ_CMAP; |
511 |
|
|
512 |
9342761 |
int[] zzTransL = ZZ_TRANS; |
513 |
9342761 |
int[] zzRowMapL = ZZ_ROWMAP; |
514 |
9342761 |
int[] zzAttrL = ZZ_ATTRIBUTE; |
515 |
|
|
516 |
9342761 |
while (true) |
517 |
|
{ |
518 |
10666298 |
zzMarkedPosL = zzMarkedPos; |
519 |
|
|
520 |
10666298 |
yychar += zzMarkedPosL - zzStartRead; |
521 |
|
|
522 |
10666298 |
zzAction = -1; |
523 |
|
|
524 |
10666298 |
zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; |
525 |
|
|
526 |
10666298 |
zzState = ZZ_LEXSTATE[zzLexicalState]; |
527 |
|
|
528 |
10666298 |
zzForAction: |
529 |
|
{ |
530 |
10666298 |
while (true) |
531 |
|
{ |
532 |
|
|
533 |
25298740 |
if (zzCurrentPosL < zzEndReadL) |
534 |
25296969 |
zzInput = zzBufferL[zzCurrentPosL++]; |
535 |
1771 |
else if (zzAtEOF) |
536 |
|
{ |
537 |
0 |
zzInput = YYEOF; |
538 |
0 |
break zzForAction; |
539 |
|
} |
540 |
|
else |
541 |
|
{ |
542 |
|
|
543 |
1771 |
zzCurrentPos = zzCurrentPosL; |
544 |
1771 |
zzMarkedPos = zzMarkedPosL; |
545 |
1771 |
boolean eof = zzRefill(); |
546 |
|
|
547 |
1771 |
zzCurrentPosL = zzCurrentPos; |
548 |
1771 |
zzMarkedPosL = zzMarkedPos; |
549 |
1771 |
zzBufferL = zzBuffer; |
550 |
1771 |
zzEndReadL = zzEndRead; |
551 |
1771 |
if (eof) |
552 |
|
{ |
553 |
340 |
zzInput = YYEOF; |
554 |
340 |
break zzForAction; |
555 |
|
} |
556 |
|
else |
557 |
|
{ |
558 |
1431 |
zzInput = zzBufferL[zzCurrentPosL++]; |
559 |
|
} |
560 |
|
} |
561 |
25298400 |
int zzNext = zzTransL[zzRowMapL[zzState] + zzCMapL[zzInput]]; |
562 |
25298400 |
if (zzNext == -1) |
563 |
4648179 |
break zzForAction; |
564 |
20650221 |
zzState = zzNext; |
565 |
|
|
566 |
20650221 |
int zzAttributes = zzAttrL[zzState]; |
567 |
20650221 |
if ((zzAttributes & 1) == 1) |
568 |
|
{ |
569 |
20456796 |
zzAction = zzState; |
570 |
20456796 |
zzMarkedPosL = zzCurrentPosL; |
571 |
20456796 |
if ((zzAttributes & 8) == 8) |
572 |
6017779 |
break zzForAction; |
573 |
|
} |
574 |
|
|
575 |
|
} |
576 |
|
} |
577 |
|
|
578 |
|
|
579 |
10666298 |
zzMarkedPos = zzMarkedPosL; |
580 |
10666298 |
switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) |
581 |
|
{ |
582 |
605531 |
case 11: |
583 |
|
{ |
584 |
605531 |
sb.append(yytext()); |
585 |
|
} |
586 |
0 |
case 25: |
587 |
605531 |
break; |
588 |
575918 |
case 4: |
589 |
|
{ |
590 |
575918 |
sb = null; |
591 |
575918 |
sb = new StringBuffer(); |
592 |
575918 |
yybegin(STRING_BEGIN); |
593 |
|
} |
594 |
0 |
case 26: |
595 |
575918 |
break; |
596 |
0 |
case 16: |
597 |
|
{ |
598 |
0 |
sb.append('\b'); |
599 |
|
} |
600 |
0 |
case 27: |
601 |
0 |
break; |
602 |
53547 |
case 6: |
603 |
|
{ |
604 |
53547 |
return new Yytoken(Yytoken.TYPE_RIGHT_BRACE, null); |
605 |
|
} |
606 |
0 |
case 28: |
607 |
0 |
break; |
608 |
74 |
case 23: |
609 |
|
{ |
610 |
74 |
Boolean val = Boolean.valueOf(yytext()); |
611 |
74 |
return new Yytoken(Yytoken.TYPE_VALUE, val); |
612 |
|
} |
613 |
0 |
case 29: |
614 |
0 |
break; |
615 |
54819 |
case 22: |
616 |
|
{ |
617 |
54819 |
return new Yytoken(Yytoken.TYPE_VALUE, null); |
618 |
|
} |
619 |
0 |
case 30: |
620 |
0 |
break; |
621 |
575918 |
case 13: |
622 |
|
{ |
623 |
575918 |
yybegin(YYINITIAL); |
624 |
575918 |
return new Yytoken(Yytoken.TYPE_VALUE, sb.toString()); |
625 |
|
} |
626 |
0 |
case 31: |
627 |
0 |
break; |
628 |
102 |
case 12: |
629 |
|
{ |
630 |
102 |
sb.append('\\'); |
631 |
|
} |
632 |
0 |
case 32: |
633 |
102 |
break; |
634 |
82842 |
case 21: |
635 |
|
{ |
636 |
82842 |
Double val = Double.valueOf(yytext()); |
637 |
82842 |
return new Yytoken(Yytoken.TYPE_VALUE, val); |
638 |
|
} |
639 |
0 |
case 33: |
640 |
0 |
break; |
641 |
0 |
case 1: |
642 |
|
{ |
643 |
0 |
throw new ParseException(yychar, |
644 |
|
ParseException.ERROR_UNEXPECTED_CHAR, |
645 |
|
new Character(yycharat(0))); |
646 |
|
} |
647 |
0 |
case 34: |
648 |
0 |
break; |
649 |
41283 |
case 8: |
650 |
|
{ |
651 |
41283 |
return new Yytoken(Yytoken.TYPE_RIGHT_SQUARE, null); |
652 |
|
} |
653 |
0 |
case 35: |
654 |
0 |
break; |
655 |
0 |
case 19: |
656 |
|
{ |
657 |
0 |
sb.append('\r'); |
658 |
|
} |
659 |
0 |
case 36: |
660 |
0 |
break; |
661 |
44856 |
case 15: |
662 |
|
{ |
663 |
44856 |
sb.append('/'); |
664 |
|
} |
665 |
0 |
case 37: |
666 |
44856 |
break; |
667 |
330453 |
case 10: |
668 |
|
{ |
669 |
330453 |
return new Yytoken(Yytoken.TYPE_COLON, null); |
670 |
|
} |
671 |
0 |
case 38: |
672 |
0 |
break; |
673 |
24 |
case 14: |
674 |
|
{ |
675 |
24 |
sb.append('"'); |
676 |
|
} |
677 |
0 |
case 39: |
678 |
24 |
break; |
679 |
53547 |
case 5: |
680 |
|
{ |
681 |
53547 |
return new Yytoken(Yytoken.TYPE_LEFT_BRACE, null); |
682 |
|
} |
683 |
0 |
case 40: |
684 |
0 |
break; |
685 |
0 |
case 17: |
686 |
|
{ |
687 |
0 |
sb.append('\f'); |
688 |
|
} |
689 |
0 |
case 41: |
690 |
0 |
break; |
691 |
190 |
case 24: |
692 |
|
{ |
693 |
190 |
try |
694 |
|
{ |
695 |
190 |
int ch = Integer.parseInt(yytext().substring(2), 16); |
696 |
190 |
sb.append((char) ch); |
697 |
|
} catch (Exception e) |
698 |
|
{ |
699 |
0 |
throw new ParseException(yychar, |
700 |
|
ParseException.ERROR_UNEXPECTED_EXCEPTION, e); |
701 |
|
} |
702 |
|
} |
703 |
0 |
case 42: |
704 |
190 |
break; |
705 |
0 |
case 20: |
706 |
|
{ |
707 |
0 |
sb.append('\t'); |
708 |
|
} |
709 |
0 |
case 43: |
710 |
0 |
break; |
711 |
41283 |
case 7: |
712 |
|
{ |
713 |
41283 |
return new Yytoken(Yytoken.TYPE_LEFT_SQUARE, null); |
714 |
|
} |
715 |
0 |
case 44: |
716 |
0 |
break; |
717 |
3862904 |
case 2: |
718 |
|
{ |
719 |
3862904 |
Long val = Long.valueOf(yytext()); |
720 |
3862904 |
return new Yytoken(Yytoken.TYPE_VALUE, val); |
721 |
|
} |
722 |
0 |
case 45: |
723 |
0 |
break; |
724 |
0 |
case 18: |
725 |
|
{ |
726 |
0 |
sb.append('\n'); |
727 |
|
} |
728 |
0 |
case 46: |
729 |
0 |
break; |
730 |
4245867 |
case 9: |
731 |
|
{ |
732 |
4245867 |
return new Yytoken(Yytoken.TYPE_COMMA, null); |
733 |
|
} |
734 |
0 |
case 47: |
735 |
0 |
break; |
736 |
96916 |
case 3: |
737 |
|
{ |
738 |
|
} |
739 |
0 |
case 48: |
740 |
96916 |
break; |
741 |
224 |
default: |
742 |
224 |
if (zzInput == YYEOF && zzStartRead == zzCurrentPos) |
743 |
|
{ |
744 |
224 |
zzAtEOF = true; |
745 |
224 |
return null; |
746 |
|
} |
747 |
|
else |
748 |
|
{ |
749 |
0 |
zzScanError(ZZ_NO_MATCH); |
750 |
|
} |
751 |
|
} |
752 |
|
} |
753 |
|
} |
754 |
|
|
755 |
|
} |