com.ibm.wala.ssa
Class AuxiliaryCache

java.lang.Object
  extended by com.ibm.wala.ssa.AuxiliaryCache

public class AuxiliaryCache
extends java.lang.Object

A cache for auxiliary information based on an SSA representation A mapping from (IMethod,Context) -> SSAOptions -> SoftReference -> something This doesn't work very well ... GCs don't do such a great job with SoftReferences ... revamp it.


Constructor Summary
AuxiliaryCache()
           
 
Method Summary
 void cache(IMethod m, Context C, SSAOptions options, java.lang.Object aux)
          cache new auxiliary information for an pair
 java.lang.Object find(IMethod m, Context C, SSAOptions options)
           
 void invalidate(IMethod method, Context C)
          invalidate all cached information about a method
 void wipe()
          The existence of this is unfortunate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuxiliaryCache

public AuxiliaryCache()
Method Detail

wipe

public void wipe()
The existence of this is unfortunate.


find

public java.lang.Object find(IMethod m,
                             Context C,
                             SSAOptions options)
Parameters:
m - a method
options - options governing ssa construction
Returns:
the object cached for m, or null if none found

cache

public void cache(IMethod m,
                  Context C,
                  SSAOptions options,
                  java.lang.Object aux)
cache new auxiliary information for an pair

Parameters:
m - a method
options - options governing ssa construction

invalidate

public void invalidate(IMethod method,
                       Context C)
invalidate all cached information about a method

Parameters:
method -