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

Method handle

src/main/java/com/sumsec/core/ast/core/ASTYaml.java:28–38  ·  view source on GitHub ↗
(String content,String filePath)

Source from the content-addressed store, hash-verified

26 }
27
28 public void handle(String content,String filePath) {
29 log.info("handle yaml");
30 CompilationUnit cu = parse(content);
31 YamlPrinter printer = new YamlPrinter(true);
32 log.info(printer.output(cu));
33 FileWriter fileWriter = new FileWriter(filePath);
34 fileWriter.write(printer.output(cu));
35 log.info("write yaml success");
36 log.info("Yaml file path: {}",filePath);
37 log.info("handle yaml end");
38 }
39}

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected