harpoon.Util.LightBasicBlocks
Class LightBasicBlock.Factory

java.lang.Object
  extended by harpoon.Util.LightBasicBlocks.LightBasicBlock.Factory
All Implemented Interfaces:
Serializable
Enclosing class:
LightBasicBlock

public static class LightBasicBlock.Factory
extends Object
implements Serializable

Converts the large, set based, basic blocks produced by a BasicBlock.Factory into smaller, array based, light basic blocks.

See Also:
Serialized Form

Constructor Summary
LightBasicBlock.Factory(BasicBlockFactoryInterf bbfact)
          Creates a LighBasicBlock.Factory object.
 
Method Summary
 LightBasicBlock[] getAllBBs()
          Returns all the LightBasicBlocks of the underlying HCode.
 LightBasicBlock getBlock(HCodeElement hce)
          Returns the LightBasicBlock the instruction hce belongs to.
 HCode getHCode()
          Returns the underlying HCode.
 LightBasicBlock getRoot()
          Returns the root LightBasicBlock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LightBasicBlock.Factory

public LightBasicBlock.Factory(BasicBlockFactoryInterf bbfact)
Creates a LighBasicBlock.Factory object. It simply converts the large, set based, basic blocks produced by bbfact into smaller, array based, light basic blocks.

Method Detail

getHCode

public HCode getHCode()
Returns the underlying HCode. This factory returns LightBasicBlocks of the code returned by this method.


getAllBBs

public LightBasicBlock[] getAllBBs()
Returns all the LightBasicBlocks of the underlying HCode.


getRoot

public LightBasicBlock getRoot()
Returns the root LightBasicBlock.


getBlock

public LightBasicBlock getBlock(HCodeElement hce)
Returns the LightBasicBlock the instruction hce belongs to.