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

Method handle

src/main/java/com/sumsec/core/ast/core/ASTXML.java:29–41  ·  view source on GitHub ↗
(String content,String filePath)

Source from the content-addressed store, hash-verified

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

Callers 1

parseMethod · 0.45

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected