Class GraphPrintVisitor

java.lang.Object
com.oracle.truffle.api.nodes.GraphPrintVisitor

public class GraphPrintVisitor extends Object
Utility class for creating output for the ideal graph visualizer.
  • Field Details

  • Constructor Details

    • GraphPrintVisitor

      public GraphPrintVisitor()
  • Method Details

    • beginGroup

      public GraphPrintVisitor beginGroup(String groupName)
    • beginGraph

      public GraphPrintVisitor beginGraph(String graphName)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • printToFile

      public void printToFile(File f)
    • printToSysout

      public void printToSysout()
    • printToNetwork

      public void printToNetwork(boolean ignoreErrors)
    • getElementByObject

      protected Element getElementByObject(Object op)
    • createElementForNode

      protected void createElementForNode(Object node)
    • setNodeProperty

      protected void setNodeProperty(Object node, String propertyName, Object value)
    • connectNodes

      protected void connectNodes(Object a, Object b, String label)
    • visit

      public GraphPrintVisitor visit(Object node)