MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / skipValue

Method skipValue

java/src/org/openqa/selenium/json/JsonInput.java:391–433  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

389 // FIXME: This method doesn't verify that the prior element was a property name.
390 // FIXME: This method doesn't enforce a depth limit when processing container types.
391 public void skipValue() {
392 switch (peek()) {
393 case BOOLEAN:
394 nextBoolean();
395 break;
396
397 case NAME:
398 nextName();
399 break;
400
401 case NULL:
402 nextNull();
403 break;
404
405 case NUMBER:
406 nextNumber();
407 break;
408
409 case START_COLLECTION:
410 beginArray();
411 while (hasNext()) {
412 skipValue();
413 }
414 endArray();
415 break;
416
417 case START_MAP:
418 beginObject();
419 while (hasNext()) {
420 nextName();
421 skipValue();
422 }
423 endObject();
424 break;
425
426 case STRING:
427 nextString();
428 break;
429
430 default:
431 throw new JsonException("Cannot skip " + peek() + ". " + input);
432 }
433 }
434
435 private void markReadPerformed() {
436 readPerformed = true;

Callers 15

canReturnStatusMethod · 0.80
fromJsonMethod · 0.80
writeMetaDataMethod · 0.80
getMetadataMethod · 0.80
isW3CMethod · 0.80
getAlwaysMatchMethod · 0.80
getFirstMatchesMethod · 0.80
mapMethod · 0.80
handleResponseMethod · 0.80
fromJsonMethod · 0.80

Calls 11

peekMethod · 0.95
nextBooleanMethod · 0.95
nextNameMethod · 0.95
nextNullMethod · 0.95
nextNumberMethod · 0.95
beginArrayMethod · 0.95
hasNextMethod · 0.95
endArrayMethod · 0.95
beginObjectMethod · 0.95
endObjectMethod · 0.95
nextStringMethod · 0.95

Tested by 3

canReturnStatusMethod · 0.64