harpoon.Util
Class Graph

java.lang.Object
  extended by harpoon.Util.Graph

public abstract class Graph
extends Object

Graph

Version:
$Id: Graph.java,v 1.6 2004/02/08 03:21:41 cananian Exp $
Author:
Darko Marinov <marinov@lcs.mit.edu>

Constructor Summary
Graph()
           
 
Method Summary
static void printBBCFG(HMethod hm, HCodeFactory hcf, PrintWriter out)
          Print the Control Flow Graph of the Basic Blocks composing the code of method hm, as constructed by the code factory hcf.
static void printBBCFG(HMethod hm, LBBConverter lbbconv, PrintWriter out)
          Print the Control Flow Graph of the Basic Blocks composing the code of method hm, as constructed by the LBBConverter hcf.
static void printCFG(HCode hc, PrintWriter pw, String title)
          Print (vcg format) control from graph representing code view.
static void printCFG(HCode hc, PrintWriter pw, String title, String[] setup)
          Print (vcg format) control flow graph representing code view.
static void printClassHierarchy(PrintWriter pw, HMethod root, ClassHierarchy ch)
           
static void printDomTree(boolean isPost, HCode hc, PrintWriter pw, String title)
          Print (vcg format) (Post)DomTree of code view.
static void printDomTree(boolean isPost, HCode hc, PrintWriter pw, String title, String[] setup)
          Print (vcg format) of (Post)DomTree.
static void printDomTree(HCode hc, PrintWriter pw, String title)
          Print (vcg format) DomTree of code view.
static void printDomTree(HCode hc, PrintWriter pw, String title, String[] setup)
          Print (vcg format) of DomTree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph

public Graph()
Method Detail

printCFG

public static final void printCFG(HCode hc,
                                  PrintWriter pw,
                                  String title)
Print (vcg format) control from graph representing code view. Use default style.


printDomTree

public static final void printDomTree(HCode hc,
                                      PrintWriter pw,
                                      String title)
Print (vcg format) DomTree of code view. Use default style.


printDomTree

public static final void printDomTree(boolean isPost,
                                      HCode hc,
                                      PrintWriter pw,
                                      String title)
Print (vcg format) (Post)DomTree of code view. Use default style.


printCFG

public static final void printCFG(HCode hc,
                                  PrintWriter pw,
                                  String title,
                                  String[] setup)
Print (vcg format) control flow graph representing code view.


printDomTree

public static final void printDomTree(HCode hc,
                                      PrintWriter pw,
                                      String title,
                                      String[] setup)
Print (vcg format) of DomTree.


printDomTree

public static final void printDomTree(boolean isPost,
                                      HCode hc,
                                      PrintWriter pw,
                                      String title,
                                      String[] setup)
Print (vcg format) of (Post)DomTree.


printClassHierarchy

public static final void printClassHierarchy(PrintWriter pw,
                                             HMethod root,
                                             ClassHierarchy ch)

printBBCFG

public static void printBBCFG(HMethod hm,
                              HCodeFactory hcf,
                              PrintWriter out)
Print the Control Flow Graph of the Basic Blocks composing the code of method hm, as constructed by the code factory hcf. The output is written to out in VCG format.


printBBCFG

public static void printBBCFG(HMethod hm,
                              LBBConverter lbbconv,
                              PrintWriter out)
Print the Control Flow Graph of the Basic Blocks composing the code of method hm, as constructed by the LBBConverter hcf. The output is written to out in VCG format.