类 BasicBranchUnit
java.lang.Object
proguard.evaluation.BasicBranchUnit
- 所有已实现的接口:
BranchUnit
This
BranchUnit remembers the branch unit commands that are invoked on it. It doesn't
consider conditions when branching.-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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.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.voidReturns from the method with the given value.voidHandles the throwing of an exception.booleanReturns whether any of the branch unit methods was called.
-
字段详细资料
-
traceBranchTargets
-
wasCalled
protected boolean wasCalled
-
-
构造器详细资料
-
BasicBranchUnit
public BasicBranchUnit()
-
-
方法详细资料
-
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
Returns the accumulated branch targets that were passed to the branch unit methods. -
branch
从接口复制的说明: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
-