MCPcopy Create free account
hub / github.com/SummerSec/SPATool / handle

Method handle

src/main/java/com/sumsec/core/ast/core/ASTDot.java:28–39  ·  view source on GitHub ↗
(String content,String filepath)

Source from the content-addressed store, hash-verified

26 }
27
28 @Override
29 public void handle(String content,String filepath) {
30 log.info("dot handle");
31 CompilationUnit cu = parse(content);
32 DotPrinter printer = new DotPrinter(true);
33 log.info(printer.output(cu));
34 FileWriter fileWriter = new FileWriter(filepath);
35 fileWriter.write(printer.output(cu));
36 log.info("write file success");
37 log.info("Dot file path: "+ filepath);
38 log.info("dot handle end");
39 }
40
41
42}

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected