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

Method write0

java/src/org/openqa/selenium/json/JsonOutput.java:400–413  ·  view source on GitHub ↗
(@Nullable Object input, int maxDepth, int depthRemaining)

Source from the content-addressed store, hash-verified

398 }
399
400 private JsonOutput write0(@Nullable Object input, int maxDepth, int depthRemaining) {
401 if (input == null) {
402 append("null");
403 return this;
404 }
405 converters.entrySet().stream()
406 .filter(entry -> entry.getKey().test(input.getClass()))
407 .findFirst()
408 .map(Map.Entry::getValue)
409 .orElseThrow(() -> new JsonException("Unable to write " + input))
410 .consume(input, maxDepth, depthRemaining);
411
412 return this;
413 }
414
415 /**
416 * {@inheritDoc}

Callers 4

JsonOutputMethod · 0.95
writeMethod · 0.95
convertUsingMethodMethod · 0.95
mapObjectMethod · 0.95

Calls 9

appendMethod · 0.95
filterMethod · 0.80
entrySetMethod · 0.80
getKeyMethod · 0.80
consumeMethod · 0.65
getClassMethod · 0.65
mapMethod · 0.45
streamMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected