MCPcopy
hub / github.com/SeleniumHQ/selenium / nextName

Method nextName

java/src/org/openqa/selenium/json/JsonInput.java:192–203  ·  view source on GitHub ↗

Read the next element of the JSON input stream as an object property name. @return JSON object property name @throws JsonException if the next element isn't a string followed by a colon @throws UncheckedIOException if an I/O exception is encountered

()

Source from the content-addressed store, hash-verified

190 * @throws UncheckedIOException if an I/O exception is encountered
191 */
192 public String nextName() {
193 expect(JsonType.NAME);
194
195 String name = readString();
196 skipWhitespace(input);
197 char read = input.read();
198 if (read != ':') {
199 throw new JsonException(
200 "Unable to read name. Expected colon separator, but saw '" + read + "'");
201 }
202 return name;
203 }
204
205 /**
206 * Read the next element of the JSON input stream as a {@code null} object.

Callers 15

skipValueMethod · 0.95
canReturnStatusMethod · 0.80
nestedMapIsFineMethod · 0.80
fromJsonMethod · 0.80
fromJsonMethod · 0.80
writeMetaDataMethod · 0.80
getMetadataMethod · 0.80
isW3CMethod · 0.80

Calls 4

expectMethod · 0.95
readStringMethod · 0.95
skipWhitespaceMethod · 0.95
readMethod · 0.65

Tested by 7

canReturnStatusMethod · 0.64
nestedMapIsFineMethod · 0.64
fromJsonMethod · 0.64