接口 BranchUnit
-
- 所有已知实现类:
BasicBranchUnit
public interface BranchUnitThis interface defines methods to handle branches and returns from methods.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.voidreturnFromMethod()Returns from the method with the given value.voidthrowException()Handles the throwing of an exception.
-
-
-
方法详细资料
-
branch
void branch(Clazz clazz, CodeAttribute codeAttribute, int offset, int branchTarget)
Sets the new instruction offset.
-
branchConditionally
void branchConditionally(Clazz clazz, CodeAttribute codeAttribute, int offset, int branchTarget, int conditional)
Sets the new instruction offset, depending on the certainty of the conditional branch.
-
returnFromMethod
void returnFromMethod()
Returns from the method with the given value.
-
throwException
void throwException()
Handles the throwing of an exception.
-
-