harpoon.Util.BasicBlocks
Class BBConverter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hcf
protected HCodeFactory hcf
quad_with_try
protected boolean quad_with_try
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
.
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
.