MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / skipValue

Method skipValue

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

Source from the content-addressed store, hash-verified

448 // FIXME: This method doesn't verify that the prior element was a property name.
449 // FIXME: This method doesn't enforce a depth limit when processing container types.
450 public void skipValue() {
451 switch (peek()) {
452 case BOOLEAN:
453 nextBoolean();
454 break;
455
456 case NAME:
457 nextName();
458 break;
459
460 case NULL:
461 nextNull();
462 break;
463
464 case NUMBER:
465 nextNumber();
466 break;
467
468 case START_COLLECTION:
469 beginArray();
470 while (hasNext()) {
471 skipValue();
472 }
473 endArray();
474 break;
475
476 case START_MAP:
477 beginObject();
478 while (hasNext()) {
479 nextName();
480 skipValue();
481 }
482 endObject();
483 break;
484
485 case STRING:
486 nextString();
487 break;
488
489 default:
490 throw new JsonException("Cannot skip " + peek() + ". " + input);
491 }
492 }
493
494 private void markReadPerformed() {
495 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