Package proguard.analysis.cpa.bam
Class BamCacheImpl<SignatureT extends Signature>
- java.lang.Object
-
- proguard.analysis.cpa.bam.BamCacheImpl<SignatureT>
-
-
Constructor Summary
Constructors Constructor Description BamCacheImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockAbstraction
get(AbstractState stateKey, Precision precisionKey, SignatureT blockKey)
Gets the block abstraction identified by the provided keys from the cache.java.util.Collection<BlockAbstraction>
get(Precision precision, SignatureT blockKey)
Returns a collection of all the cache entries for a specified method with a certain precision, empty in case there are not such entries.java.util.Collection<BlockAbstraction>
get(SignatureT blockKey)
Returns a collection of all the cache entries for a specified method, empty in case there are not such entries.java.util.Set<SignatureT>
getAllMethods()
Returns a set of all the methods that have an entry in the cache.void
put(AbstractState stateKey, Precision precisionKey, SignatureT blockKey, BlockAbstraction blockAbstraction)
Adds the block abstraction identified by the provided keys to the cache.int
size()
Returns the size of the cache.java.util.Collection<BlockAbstraction>
values()
Returns block abstractions stored in the cache.
-
-
-
Method Detail
-
put
public void put(AbstractState stateKey, Precision precisionKey, SignatureT blockKey, BlockAbstraction blockAbstraction)
Description copied from interface:BamCache
Adds the block abstraction identified by the provided keys to the cache.- Specified by:
put
in interfaceBamCache<SignatureT extends Signature>
-
get
public BlockAbstraction get(AbstractState stateKey, Precision precisionKey, SignatureT blockKey)
Description copied from interface:BamCache
Gets the block abstraction identified by the provided keys from the cache.- Specified by:
get
in interfaceBamCache<SignatureT extends Signature>
- Returns:
- The requested block abstraction, null in case of cache-miss.
-
get
public java.util.Collection<BlockAbstraction> get(SignatureT blockKey)
Description copied from interface:BamCache
Returns a collection of all the cache entries for a specified method, empty in case there are not such entries.- Specified by:
get
in interfaceBamCache<SignatureT extends Signature>
-
get
public java.util.Collection<BlockAbstraction> get(Precision precision, SignatureT blockKey)
Description copied from interface:BamCache
Returns a collection of all the cache entries for a specified method with a certain precision, empty in case there are not such entries.- Specified by:
get
in interfaceBamCache<SignatureT extends Signature>
-
values
public java.util.Collection<BlockAbstraction> values()
Description copied from interface:BamCache
Returns block abstractions stored in the cache.- Specified by:
values
in interfaceBamCache<SignatureT extends Signature>
-
size
public int size()
Description copied from interface:BamCache
Returns the size of the cache.- Specified by:
size
in interfaceBamCache<SignatureT extends Signature>
-
getAllMethods
public java.util.Set<SignatureT> getAllMethods()
Description copied from interface:BamCache
Returns a set of all the methods that have an entry in the cache.- Specified by:
getAllMethods
in interfaceBamCache<SignatureT extends Signature>
-
-