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

Method skipValue

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

Source from the content-addressed store, hash-verified

612 // FIXME: This method doesn't verify that the prior element was a property name.
613 // FIXME: This method doesn't enforce a depth limit when processing container types.
614 public void skipValue() {
615 switch (peek()) {
616 case BOOLEAN:
617 nextBoolean();
618 break;
619
620 case NAME:
621 nextName();
622 break;
623
624 case NULL:
625 nextNull();
626 break;
627
628 case NUMBER:
629 nextNumber();
630 break;
631
632 case START_COLLECTION:
633 beginArray();
634 while (hasNext()) {
635 skipValue();
636 }
637 endArray();
638 break;
639
640 case START_MAP:
641 beginObject();
642 while (hasNext()) {
643 nextName();
644 skipValue();
645 }
646 endObject();
647 break;
648
649 case STRING:
650 nextString();
651 break;
652
653 default:
654 throw new JsonException("Cannot skip " + peek() + ". " + input);
655 }
656 }
657
658 private void markReadPerformed() {
659 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
fromJsonMethod · 0.80
fromJsonMethod · 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