MCPcopy Index your code
hub / github.com/apache/tomcat / list

Method list

java/org/apache/tomcat/util/json/JSONParser.java:242–291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240 }
241
242 final public java.util.ArrayList<Object> list() throws ParseException {
243 final java.util.ArrayList<Object> list = new java.util.ArrayList<Object>();
244 Object value;
245 jj_consume_token(BRACKET_OPEN);
246 switch (jj_nt.kind) {
247 case BRACE_OPEN:
248 case BRACKET_OPEN:
249 case NUMBER_INTEGER:
250 case NUMBER_DECIMAL:
251 case TRUE:
252 case FALSE:
253 case NULL:
254 case STRING_SINGLE_EMPTY:
255 case STRING_DOUBLE_EMPTY:
256 case STRING_SINGLE_NONEMPTY:
257 case STRING_DOUBLE_NONEMPTY: {
258 value = anything();
259 list.add(value);
260 value = null;
261 label_2:
262 while (true) {
263 switch (jj_nt.kind) {
264 case COMMA: {
265 ;
266 break;
267 }
268 default:
269 jj_la1[5] = jj_gen;
270 break label_2;
271 }
272 jj_consume_token(COMMA);
273 value = anything();
274 list.add(value);
275 value = null;
276 }
277 break;
278 }
279 default:
280 jj_la1[6] = jj_gen;
281 ;
282 }
283 jj_consume_token(BRACKET_CLOSE);
284 list.trimToSize();
285 {
286 if ("" != null) {
287 return list;
288 }
289 }
290 throw new Error("Missing return statement in function");
291 }
292
293 final public Object value() throws ParseException {
294 Object x;

Callers 2

parseArrayMethod · 0.95
anythingMethod · 0.95

Calls 3

jj_consume_tokenMethod · 0.95
anythingMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected