类 JvmFrameAbstractState<StateT extends AbstractState<StateT>>
java.lang.Object
proguard.analysis.cpa.jvm.state.JvmFrameAbstractState<StateT>
- 所有已实现的接口:
AbstractState<JvmFrameAbstractState<StateT>>
public class JvmFrameAbstractState<StateT extends AbstractState<StateT>>
extends Object
implements AbstractState<JvmFrameAbstractState<StateT>>
The
JvmFrameAbstractState combines the operand stack as the StackAbstractState
and the local variable array as the ListAbstractState. This abstract state does not
restrict the way one models values, i.e., one abstract state may correspond to a byte sequence of
arbitrary length.-
字段概要
字段 -
构造器概要
构造器构造器说明Create an empty frame.JvmFrameAbstractState(ListAbstractState<StateT> localVariables, StackAbstractState<StateT> operandStack) Create a frame from a local variable array and an operand stack. -
方法概要
修饰符和类型方法说明copy()Creates a copy of itself.booleanReturns the variable array.Returns the operand stack.getVariableOrDefault(int index, StateT defaultState) Returns an abstract state at theindexth position of the variable array ordefaultStateif there is no entry.inthashCode()booleanisLessOrEqual(JvmFrameAbstractState<StateT> abstractState) Compares itself to theabstractState(i.e., compare the states on the partial order provided by the domain of the analysis).join(JvmFrameAbstractState<StateT> abstractState) Computes a join over itself and another abstract stateabstractState(i.e., finds the least upper bound on the semilattice).peek(int index) Returns theindexth element from the top of the operand stack.peekOrDefault(int index, StateT defaultState) Returns theindexth element from the top of the operand stack or returnsdefaultStateif the stack does not have enough elements.pop()Removes the top element of the operand stack end returns it.popOrDefault(StateT defaultState) Removes the top element of the operand stack end returns it.Insertsstateto the top of the operand stack and returns it.Sequentially inserts elements ofstatesto the top of the operand stack and returnsstates.setVariable(int index, StateT state, StateT defaultState) Sets theindexth position of the variable array tostateand returnsstate.从接口继承的方法 proguard.analysis.cpa.interfaces.AbstractState
getPrecision, isLess
-
字段详细资料
-
localVariables
-
operandStack
-
-
构造器详细资料
-
JvmFrameAbstractState
public JvmFrameAbstractState()Create an empty frame. -
JvmFrameAbstractState
public JvmFrameAbstractState(ListAbstractState<StateT> localVariables, StackAbstractState<StateT> operandStack) Create a frame from a local variable array and an operand stack.- 参数:
localVariables- a local variable arrayoperandStack- an operand stack
-
-
方法详细资料
-
join
从接口复制的说明: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
从接口复制的说明: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>>
-
copy
从接口复制的说明:AbstractStateCreates a copy of itself.- 指定者:
copy在接口中AbstractState<StateT extends AbstractState<StateT>>
-
equals
- 指定者:
equals在接口中AbstractState<StateT extends AbstractState<StateT>>- 覆盖:
equals在类中Object
-
hashCode
public int hashCode()- 指定者:
hashCode在接口中AbstractState<StateT extends AbstractState<StateT>>- 覆盖:
hashCode在类中Object
-
peekOrDefault
Returns theindexth element from the top of the operand stack or returnsdefaultStateif the stack does not have enough elements. -
peek
Returns theindexth element from the top of the operand stack. -
pop
Removes the top element of the operand stack end returns it. -
popOrDefault
Removes the top element of the operand stack end returns it. ReturnsdefaultStateif the stack is empty. -
push
Insertsstateto the top of the operand stack and returns it. -
pushAll
Sequentially inserts elements ofstatesto the top of the operand stack and returnsstates. -
getVariableOrDefault
Returns an abstract state at theindexth position of the variable array ordefaultStateif there is no entry. -
setVariable
Sets theindexth position of the variable array tostateand returnsstate. If the array has to be extended, the added cells are padded withdefaultState. -
getLocalVariables
Returns the variable array. -
getOperandStack
Returns the operand stack.
-