类 BamCacheImpl<ContentT extends AbstractState<ContentT>>
- java.lang.Object
-
- proguard.analysis.cpa.bam.BamCacheImpl<ContentT>
-
- 类型参数:
ContentT- The content of the jvm states. For example, this can be aSetAbstractStateof taints for taint analysis or aValueAbstractStatefor value analysis.
- 所有已实现的接口:
BamCache<ContentT>
public class BamCacheImpl<ContentT extends AbstractState<ContentT>> extends java.lang.Object implements BamCache<ContentT>
A simple implementation ofBamCachewhere the cache is implemented as aHashMap.
-
-
构造器概要
构造器 构造器 说明 BamCacheImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.util.Collection<BlockAbstraction<ContentT>>get(Precision precision, MethodSignature 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.BlockAbstraction<ContentT>get(JvmAbstractState<ContentT> stateKey, Precision precisionKey, MethodSignature blockKey)Gets the block abstraction identified by the provided keys from the cache.java.util.Collection<BlockAbstraction<ContentT>>get(MethodSignature blockKey)Returns a collection of all the cache entries for a specified method, empty in case there are not such entries.java.util.Set<MethodSignature>getAllMethods()Returns a set of all the methods that have an entry in the cache.voidput(JvmAbstractState<ContentT> stateKey, Precision precisionKey, MethodSignature blockKey, BlockAbstraction<ContentT> blockAbstraction)Adds the block abstraction identified by the provided keys to the cache.intsize()Returns the size of the cache.java.util.Collection<BlockAbstraction<ContentT>>values()Returns block abstractions stored in the cache.
-
-
-
方法详细资料
-
put
public void put(JvmAbstractState<ContentT> stateKey, Precision precisionKey, MethodSignature blockKey, BlockAbstraction<ContentT> blockAbstraction)
从接口复制的说明:BamCacheAdds the block abstraction identified by the provided keys to the cache.- 指定者:
put在接口中BamCache<ContentT extends AbstractState<ContentT>>
-
get
public BlockAbstraction<ContentT> get(JvmAbstractState<ContentT> stateKey, Precision precisionKey, MethodSignature blockKey)
从接口复制的说明:BamCacheGets the block abstraction identified by the provided keys from the cache.- 指定者:
get在接口中BamCache<ContentT extends AbstractState<ContentT>>- 返回:
- The requested block abstraction, null in case of cache-miss.
-
get
public java.util.Collection<BlockAbstraction<ContentT>> get(MethodSignature blockKey)
从接口复制的说明:BamCacheReturns a collection of all the cache entries for a specified method, empty in case there are not such entries.- 指定者:
get在接口中BamCache<ContentT extends AbstractState<ContentT>>
-
get
public java.util.Collection<BlockAbstraction<ContentT>> get(Precision precision, MethodSignature blockKey)
从接口复制的说明:BamCacheReturns a collection of all the cache entries for a specified method with a certain precision, empty in case there are not such entries.- 指定者:
get在接口中BamCache<ContentT extends AbstractState<ContentT>>
-
values
public java.util.Collection<BlockAbstraction<ContentT>> values()
从接口复制的说明:BamCacheReturns block abstractions stored in the cache.- 指定者:
values在接口中BamCache<ContentT extends AbstractState<ContentT>>
-
size
public int size()
从接口复制的说明:BamCacheReturns the size of the cache.- 指定者:
size在接口中BamCache<ContentT extends AbstractState<ContentT>>
-
getAllMethods
public java.util.Set<MethodSignature> getAllMethods()
从接口复制的说明:BamCacheReturns a set of all the methods that have an entry in the cache.- 指定者:
getAllMethods在接口中BamCache<ContentT extends AbstractState<ContentT>>
-
-