use of com.oracle.svm.configure.json.JsonWriter in project graal by oracle.
the class RuleNode method printJsonTree.
public void printJsonTree(OutputStream out) throws IOException {
try (JsonWriter writer = new JsonWriter(new OutputStreamWriter(out))) {
writer.append('{');
writer.indent().newline();
writer.quote("rules").append(": [").indent().newline();
final boolean[] isFirstRule = { true };
printJsonEntries(writer, isFirstRule, "");
writer.unindent().newline();
writer.append(']').unindent().newline();
writer.append('}').newline();
}
}
Aggregations