Replaces ImportStatements with the statements from the file to be imported.
If unable to find the file, or the file is not parseable, a comment with an error message will be added instead.
4142434445464748495051
@Override public String transform(String text) { Model m; try { m = parse(text+"\n").model(); m = new ResolveImports(baseDir).transform(m); m = new ShapeToRuleTransformer().transform(m); StringWriter out = new StringWriter(); out.write("graph G {\noverlap=false;\nratio=fill;\n");
3738394041424344454647
@Override public String transform(String text) { try { Model m = parse(text+"\n").model(); m = new ResolveImports(baseDir).transform(m); m = new ShapeToRuleTransformer().transform(m); // m = new AddPinchesModelTransformer().transform(m); m = new AddRatesFromShapesTransformer().transform(m); return m.toString().trim();