harpoon.Util.BasicBlocks
Class BBConverter

java.lang.Object
  extended by harpoon.Util.BasicBlocks.BBConverter
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CachingBBConverter

public class BBConverter
extends Object
implements Serializable

BBConverter is a convenient class that offers a function which returns a basic block view of the code of a method.

Version:
$Id: BBConverter.java,v 1.2 2002/02/25 21:08:59 cananian Exp $
Author:
Alexandru SALCIANU <salcianu@retezat.lcs.mit.edu>
See Also:
Serialized Form

Field Summary
protected  HCodeFactory hcf
           
protected  boolean quad_with_try
           
 
Constructor Summary
BBConverter(HCodeFactory hcf)
          Creates a BBConverter.
 
Method Summary
 BasicBlockFactoryInterf convert2bb(HMethod hm)
          Converts the code of the method hm to basic blocks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hcf

protected HCodeFactory hcf

quad_with_try

protected boolean quad_with_try
Constructor Detail

BBConverter

public BBConverter(HCodeFactory hcf)
Creates a BBConverter. Receives as parameter the HCodeFactory that will be used to generated the code of the methods passed to convert2bb.

Method Detail

convert2bb

public BasicBlockFactoryInterf convert2bb(HMethod hm)
Converts the code of the method hm to basic blocks. The code of the method is obtained from the HCodeFactory that was passed to the constructor of this.