类 JvmForgetfulHeapAbstractState<StateT extends AbstractState<StateT>>
- java.lang.Object
-
- proguard.analysis.cpa.jvm.state.heap.JvmForgetfulHeapAbstractState<StateT>
-
- 所有已实现的接口:
AbstractState<JvmHeapAbstractState<StateT>>,JvmHeapAbstractState<StateT>
public class JvmForgetfulHeapAbstractState<StateT extends AbstractState<StateT>> extends java.lang.Object implements JvmHeapAbstractState<StateT>
This is a forgetful stub heap implementation. It does not change and always returns the default value.
-
-
构造器概要
构造器 构造器 说明 JvmForgetfulHeapAbstractState(StateT defaultValue)Create a forgetful heap abstract state returning the specified value for all queries.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 JvmForgetfulHeapAbstractState<StateT>copy()Creates a copy of itself.booleanequals(java.lang.Object o)<T> StateTgetArrayElementOrDefault(T array, StateT index, StateT defaultValue)Returns anarrayelement at the specifiedindexor thedefaultValue, if the element is unset.<T> StateTgetFieldOrDefault(T object, java.lang.String fqn, StateT defaultValue)Returns a fieldfqnfrom a referenceobject.inthashCode()booleanisLessOrEqual(JvmHeapAbstractState<StateT> abstractState)Compares itself to theabstractState(i.e., compare the states on the partial order provided by the domain of the analysis).JvmForgetfulHeapAbstractState<StateT>join(JvmHeapAbstractState<StateT> abstractState)Computes a join over itself and another abstract stateabstractState(i.e., finds the least upper bound on the semilattice).StateTnewArray(java.lang.String type, java.util.List<StateT> dimensions, JvmCfaNode creationCite)Creates a new array of a given class with the given dimension sizes at a specific program point and returns a reference to it.StateTnewObject(java.lang.String className, JvmCfaNode creationCite)Creates a new object of a given class at a specific program point and returns a reference to it.<T> voidsetArrayElement(T array, StateT index, StateT value)Sets thearrayelementvalueat the specifiedindex.<T> voidsetField(T object, java.lang.String fqn, StateT value)Sets avalueto a fieldfqnof a referencedobject.-
从接口继承的方法 proguard.analysis.cpa.interfaces.AbstractState
getPrecision, isLess
-
从接口继承的方法 proguard.analysis.cpa.jvm.state.heap.JvmHeapAbstractState
expand, newObject, reduce
-
-
-
-
构造器详细资料
-
JvmForgetfulHeapAbstractState
public JvmForgetfulHeapAbstractState(StateT defaultValue)
Create a forgetful heap abstract state returning the specified value for all queries.- 参数:
defaultValue- the value to be returned by memory accesses
-
-
方法详细资料
-
getFieldOrDefault
public <T> StateT getFieldOrDefault(T object, java.lang.String fqn, StateT defaultValue)
从接口复制的说明:JvmHeapAbstractStateReturns a fieldfqnfrom a referenceobject. If there is no abstract state representing the field, returns thedefaultValue- 指定者:
getFieldOrDefault在接口中JvmHeapAbstractState<StateT extends AbstractState<StateT>>
-
setField
public <T> void setField(T object, java.lang.String fqn, StateT value)从接口复制的说明:JvmHeapAbstractStateSets avalueto a fieldfqnof a referencedobject.- 指定者:
setField在接口中JvmHeapAbstractState<StateT extends AbstractState<StateT>>
-
getArrayElementOrDefault
public <T> StateT getArrayElementOrDefault(T array, StateT index, StateT defaultValue)
从接口复制的说明:JvmHeapAbstractStateReturns anarrayelement at the specifiedindexor thedefaultValue, if the element is unset.- 指定者:
getArrayElementOrDefault在接口中JvmHeapAbstractState<StateT extends AbstractState<StateT>>
-
setArrayElement
public <T> void setArrayElement(T array, StateT index, StateT value)从接口复制的说明:JvmHeapAbstractStateSets thearrayelementvalueat the specifiedindex.- 指定者:
setArrayElement在接口中JvmHeapAbstractState<StateT extends AbstractState<StateT>>
-
newObject
public StateT newObject(java.lang.String className, JvmCfaNode creationCite)
从接口复制的说明:JvmHeapAbstractStateCreates a new object of a given class at a specific program point and returns a reference to it.- 指定者:
newObject在接口中JvmHeapAbstractState<StateT extends AbstractState<StateT>>
-
newArray
public StateT newArray(java.lang.String type, java.util.List<StateT> dimensions, JvmCfaNode creationCite)
从接口复制的说明:JvmHeapAbstractStateCreates a new array of a given class with the given dimension sizes at a specific program point and returns a reference to it.- 指定者:
newArray在接口中JvmHeapAbstractState<StateT extends AbstractState<StateT>>
-
join
public JvmForgetfulHeapAbstractState<StateT> join(JvmHeapAbstractState<StateT> abstractState)
从接口复制的说明:AbstractStateComputes a join over itself and another abstract stateabstractState(i.e., finds the least upper bound on the semilattice).- 指定者:
join在接口中AbstractState<StateT extends AbstractState<StateT>>
-
isLessOrEqual
public boolean isLessOrEqual(JvmHeapAbstractState<StateT> abstractState)
从接口复制的说明:AbstractStateCompares itself to theabstractState(i.e., compare the states on the partial order provided by the domain of the analysis).- 指定者:
isLessOrEqual在接口中AbstractState<StateT extends AbstractState<StateT>>
-
equals
public boolean equals(java.lang.Object o)
- 指定者:
equals在接口中AbstractState<StateT extends AbstractState<StateT>>- 覆盖:
equals在类中java.lang.Object
-
hashCode
public int hashCode()
- 指定者:
hashCode在接口中AbstractState<StateT extends AbstractState<StateT>>- 覆盖:
hashCode在类中java.lang.Object
-
copy
public JvmForgetfulHeapAbstractState<StateT> copy()
从接口复制的说明:AbstractStateCreates a copy of itself.- 指定者:
copy在接口中AbstractState<StateT extends AbstractState<StateT>>- 指定者:
copy在接口中JvmHeapAbstractState<StateT extends AbstractState<StateT>>
-
-