harpoon.Analysis.EventDriven
Class LockRemove

java.lang.Object
  extended by harpoon.Analysis.EventDriven.LockRemove
All Implemented Interfaces:
HCodeFactory

public class LockRemove
extends Object
implements HCodeFactory

LockRemove

Version:
$Id: LockRemove.java,v 1.3 2004/02/08 01:51:58 cananian Exp $
Author:
Karen K. Zee <kkz@alum.mit.edu>

Constructor Summary
LockRemove(Set hclassSet, Map typeMap, HCodeFactory parent)
           
 
Method Summary
 void clear(HMethod m)
          Removes representation of method m from all caches in this factory and its parents.
 HCode convert(HMethod m)
          Make an HCode from an HMethod.
 String getCodeName()
          Returns a string naming the type of the HCode that this factory produces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockRemove

public LockRemove(Set hclassSet,
                  Map typeMap,
                  HCodeFactory parent)
Method Detail

clear

public void clear(HMethod m)
Description copied from interface: HCodeFactory
Removes representation of method m from all caches in this factory and its parents.

Specified by:
clear in interface HCodeFactory

getCodeName

public String getCodeName()
Description copied from interface: HCodeFactory
Returns a string naming the type of the HCode that this factory produces.

this.getCodeName() should equal this.convert(m).getName() for every HMethod m.

Specified by:
getCodeName in interface HCodeFactory

convert

public HCode convert(HMethod m)
Description copied from interface: HCodeFactory
Make an HCode from an HMethod.

convert is allowed to return null if the requested conversion is impossible; typically this is because it's attempt to convert a source representation failed -- for example, because m is a native method.

Specified by:
convert in interface HCodeFactory