Renders this config object using config-script syntax. @return a formatted config representation
()
| 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 |