类 BasicBranchUnit
- java.lang.Object
-
- proguard.evaluation.BasicBranchUnit
-
- 所有已实现的接口:
BranchUnit
public class BasicBranchUnit extends java.lang.Object implements BranchUnit
ThisBranchUnitremembers the branch unit commands that are invoked on it. It doesn't consider conditions when branching.
-
-
字段概要
字段 修饰符和类型 字段 说明 protected InstructionOffsetValuetraceBranchTargetsprotected booleanwasCalled
-
构造器概要
构造器 构造器 说明 BasicBranchUnit()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidbranch(Clazz clazz, CodeAttribute codeAttribute, int offset, int branchTarget)Sets the new instruction offset.voidbranchConditionally(Clazz clazz, CodeAttribute codeAttribute, int offset, int branchTarget, int conditional)Sets the new instruction offset, depending on the certainty of the conditional branch.InstructionOffsetValuegetTraceBranchTargets()Returns the accumulated branch targets that were passed to the branch unit methods.voidreset()Resets the accumulated branch targets and the flag that tells whether any of the branch unit methods was called.voidreturnFromMethod()Returns from the method with the given value.voidthrowException()Handles the throwing of an exception.booleanwasCalled()Returns whether any of the branch unit methods was called.
-
-
-
字段详细资料
-
traceBranchTargets
protected InstructionOffsetValue traceBranchTargets
-
wasCalled
protected boolean wasCalled
-
-
方法详细资料
-
reset
public void reset()
Resets the accumulated branch targets and the flag that tells whether any of the branch unit methods was called.
-
wasCalled
public boolean wasCalled()
Returns whether any of the branch unit methods was called.
-
getTraceBranchTargets
public InstructionOffsetValue getTraceBranchTargets()
Returns the accumulated branch targets that were passed to the branch unit methods.
-
branch
public void branch(Clazz clazz, CodeAttribute codeAttribute, int offset, int branchTarget)
从接口复制的说明:BranchUnitSets the new instruction offset.- 指定者:
branch在接口中BranchUnit
-
branchConditionally
public void branchConditionally(Clazz clazz, CodeAttribute codeAttribute, int offset, int branchTarget, int conditional)
从接口复制的说明:BranchUnitSets the new instruction offset, depending on the certainty of the conditional branch.- 指定者:
branchConditionally在接口中BranchUnit
-
returnFromMethod
public void returnFromMethod()
从接口复制的说明:BranchUnitReturns from the method with the given value.- 指定者:
returnFromMethod在接口中BranchUnit
-
throwException
public void throwException()
从接口复制的说明:BranchUnitHandles the throwing of an exception.- 指定者:
throwException在接口中BranchUnit
-
-