public void debugRouterMap(String name) { try { routerMap.toDOTFile(File.createTempFile(name,".dot")); } catch (IOException e) { } }
public void debugURLMap() { try { urlMap.toDOTFile(File.createTempFile("debugTrie", ".dot")); } catch (Exception e) { throw new RuntimeException(e); } }
public TrieParser trieParser() { if (writeDot) { File createTempFile; try { createTempFile = File.createTempFile("parser", ".dot"); schema.parser().toDOTFile(createTempFile); String absPath = createTempFile.getAbsolutePath(); System.err.println("file: "+absPath); String filename = createTempFile.getName(); String command = "dot -Tsvg -o"+filename+".svg "+filename; System.err.println(command); } catch (Throwable t) { t.printStackTrace(); } } writeDot = false; return schema.parser(); }
public TrieParser trieParser() { if (writeDot) { File createTempFile; try { createTempFile = File.createTempFile("parser", ".dot"); schema.parser().toDOTFile(createTempFile); String absPath = createTempFile.getAbsolutePath(); System.err.println("file: "+absPath); String filename = createTempFile.getName(); String command = "dot -Tsvg -o"+filename+".svg "+filename; System.err.println(command); } catch (Throwable t) { t.printStackTrace(); } } writeDot = false; return schema.parser(); }
public TrieParser trieParser() { if (writeDot) { File createTempFile; try { createTempFile = File.createTempFile("parser", ".dot"); schema.parser().toDOTFile(createTempFile); String absPath = createTempFile.getAbsolutePath(); System.err.println("file: "+absPath); String filename = createTempFile.getName(); String command = "dot -Tsvg -o"+filename+".svg "+filename; System.err.println(command); } catch (Throwable t) { t.printStackTrace(); } } writeDot = false; return schema.parser(); }