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

Method writeNode

src/main/java/groovy/util/ConfigObject.java:291–298  ·  view source on GitHub ↗
(String key, String space, int tab, ConfigObject value, BufferedWriter out)

Source from the content-addressed store, hash-verified

289 }
290
291 private void writeNode(String key, String space, int tab, ConfigObject value, BufferedWriter out) throws IOException {
292 key = KEYWORDS.contains(key) ? FormatHelper.inspect(key) : key;
293 out.append(space).append(key).append(" {");
294 out.newLine();
295 writeConfig("", value, out, tab + 1, true);
296 out.append(space).append('}');
297 out.newLine();
298 }
299
300 private static Properties convertValuesToString(Map props) {
301 Properties newProps = new Properties();

Callers 1

writeConfigMethod · 0.95

Calls 5

inspectMethod · 0.95
writeConfigMethod · 0.95
newLineMethod · 0.80
containsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected