MCPcopy Create free account
hub / github.com/QuiltMC/chasm / write

Method write

chassembly/src/main/java/org/quiltmc/chasm/lang/api/ast/Node.java:61–66  ·  view source on GitHub ↗

Writes this node to a file.

(Path path)

Source from the content-addressed store, hash-verified

59 * Writes this node to a file.
60 */
61 public void write(Path path) throws IOException {
62 Renderer renderer = Renderer.builder().build();
63 StringBuilder sb = new StringBuilder();
64 render(renderer, sb, 1);
65 Files.write(path, sb.toString().getBytes()); // what about utf16 support?
66 }
67}

Callers 2

doTestMethod · 0.80
printlnMethod · 0.80

Calls 4

builderMethod · 0.95
renderMethod · 0.95
buildMethod · 0.65
toStringMethod · 0.45

Tested by 2

doTestMethod · 0.64
printlnMethod · 0.64