Package dk.brics.xmlgraph.converter

Examples of dk.brics.xmlgraph.converter.XMLGraph2Dot


                            method.getName(), g.getRoots().size());

            PrintWriter output = new PrintWriter(new File("test/out/"
                    + method.getName() + counter + ".dot"));
            try {
                new XMLGraph2Dot(output).print(g);
            } finally {
                output.close();
            }
            counter++;
        }
View Full Code Here


    try {
      String path = getPathForStatement(s) + ".dot";
      Debug.println(3, true, "Writing XML graph to: " + path);
      FileOutputStream out = new FileOutputStream(path);
      PrintStream pout = new PrintStream(out);
      new XMLGraph2Dot(pout).print(xg, true);
      pout.close();
    } catch (FileNotFoundException e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

      String path = getPathForStatement(s) + ".dot";
      Debug.println(3, true, "Writing XML graph to: " + path);
      System.err.println("Writing DOT file to " + path);
      FileOutputStream out = new FileOutputStream(path);
      PrintStream pout = new PrintStream(out);
      new XMLGraph2Dot(pout).print(xg, getNodesWithinDepth(xg, depth));
      pout.close();
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

   */
  public static void dumpXMLGraph(XMLGraph xg, String filename) {
    try {
      FileOutputStream out = new FileOutputStream(filename);
      PrintStream pout = new PrintStream(out);
      new XMLGraph2Dot(pout).print(xg, true);
      pout.close();
    } catch (FileNotFoundException e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

                if (getGapNames(xg).isEmpty()) {
                    System.out.println("empty gaps for: "
                            + SourceUtil.getLocation(plugging.getContainer()
                                    .getMethod(), plugging.getContainer()
                                    .getStatement()));
                    new XMLGraph2Dot(new PrintWriter(System.out)).print(xg);
                }
                xg.processNodes(gapFinder);
                for (ChoiceNode gap : gapFinder.getGaps()) {
                    if (!gap2plug.containsKey(gap))
                        gap2plug.put(gap, new HashSet<Plugging>());
View Full Code Here

                        + SourceUtil.getLocation(container.getMethod(),
                                container.getStatement())
                        + " --> null analyzestmt");
            } else {
                XMLGraph xg = xmlGraphs.getIn(analyzeStm, analyzeStm.getBase());
                new XMLGraph2Dot(new PrintWriter(System.out)).print(xg);
                ret2xg.put(returnStmt, xg);
            }
        }
        return ret2xg;
    }
View Full Code Here

TOP

Related Classes of dk.brics.xmlgraph.converter.XMLGraph2Dot

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.