MCPcopy Index your code
hub / github.com/google/gson / nextName

Method nextName

src/main/java/com/google/gson/stream/JsonReader.java:441–449  ·  view source on GitHub ↗

Returns the next token, a JsonToken#NAME property name, and consumes it. @throws IOException if the next token in the stream is not a property name.

()

Source from the content-addressed store, hash-verified

439 * name.
440 */
441 public String nextName() throws IOException {
442 quickPeek();
443 if (token != JsonToken.NAME) {
444 throw new IllegalStateException("Expected a name but was " + peek());
445 }
446 String result = name;
447 advance();
448 return result;
449 }
450
451 /**
452 * Returns the {@link JsonToken#STRING string} value of the next token,

Callers 15

testReadObjectMethod · 0.95
testSkipObjectMethod · 0.95
testHelloWorldMethod · 0.95
testMissingValueMethod · 0.95
testPrematurelyClosedMethod · 0.95

Calls 3

quickPeekMethod · 0.95
peekMethod · 0.95
advanceMethod · 0.95

Tested by 15

testReadObjectMethod · 0.76
testSkipObjectMethod · 0.76
testHelloWorldMethod · 0.76
testMissingValueMethod · 0.76
testPrematurelyClosedMethod · 0.76