MCPcopy Index your code
hub / github.com/apache/groovy / prettyPrint

Method prettyPrint

src/main/java/groovy/util/ConfigObject.java:451–460  ·  view source on GitHub ↗

Renders this config object using config-script syntax. @return a formatted config representation

()

Source from the content-addressed store, hash-verified

449 * @return a formatted config representation
450 */
451 public String prettyPrint() {
452 Writer sw = new StringBuilderWriter();
453 try {
454 writeTo(sw);
455 } catch (IOException e) {
456 throw new GroovyRuntimeException(e);
457 }
458
459 return sw.toString();
460 }
461
462 /** {@inheritDoc} */
463 @Override

Callers

nothing calls this directly

Calls 2

writeToMethod · 0.95
toStringMethod · 0.95

Tested by

no test coverage detected