类 ExceptionInstructionChecker
- java.lang.Object
-
- proguard.optimize.info.ExceptionInstructionChecker
-
- 所有已实现的接口:
proguard.classfile.instruction.visitor.InstructionVisitor
public class ExceptionInstructionChecker extends java.lang.Object implements proguard.classfile.instruction.visitor.InstructionVisitorThis class can tell whether an instruction might throw exceptions.
-
-
构造器概要
构造器 构造器 说明 ExceptionInstructionChecker()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intfirstExceptionThrowingInstructionOffset(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int startOffset, int endOffset)Returns the offset of the first instruction in the specified block of code that may throw exceptions, or the end offset if there is none.intlastExceptionThrowingInstructionOffset(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int startOffset, int endOffset)Returns the offset after the last instruction in the specified block of code that may throw exceptions, or the start offset if there is none.booleanmayThrowExceptions(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute)Returns whether the specified method may throw exceptions.booleanmayThrowExceptions(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset)Returns whether the specified instruction may throw exceptions.booleanmayThrowExceptions(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int startOffset, int endOffset)Returns whether the specified block of code may throw exceptions.booleanmayThrowExceptions(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.Instruction instruction)Returns whether the given instruction may throw exceptions.voidvisitAnyInstruction(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.Instruction instruction)voidvisitConstantInstruction(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.ConstantInstruction constantInstruction)voidvisitSimpleInstruction(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.SimpleInstruction simpleInstruction)
-
-
-
方法详细资料
-
mayThrowExceptions
public boolean mayThrowExceptions(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute)Returns whether the specified method may throw exceptions.
-
mayThrowExceptions
public boolean mayThrowExceptions(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int startOffset, int endOffset)Returns whether the specified block of code may throw exceptions.
-
firstExceptionThrowingInstructionOffset
public int firstExceptionThrowingInstructionOffset(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int startOffset, int endOffset)Returns the offset of the first instruction in the specified block of code that may throw exceptions, or the end offset if there is none.
-
lastExceptionThrowingInstructionOffset
public int lastExceptionThrowingInstructionOffset(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int startOffset, int endOffset)Returns the offset after the last instruction in the specified block of code that may throw exceptions, or the start offset if there is none.
-
mayThrowExceptions
public boolean mayThrowExceptions(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset)Returns whether the specified instruction may throw exceptions.
-
mayThrowExceptions
public boolean mayThrowExceptions(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.Instruction instruction)Returns whether the given instruction may throw exceptions.
-
visitAnyInstruction
public void visitAnyInstruction(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.Instruction instruction)- 指定者:
visitAnyInstruction在接口中proguard.classfile.instruction.visitor.InstructionVisitor
-
visitSimpleInstruction
public void visitSimpleInstruction(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.SimpleInstruction simpleInstruction)- 指定者:
visitSimpleInstruction在接口中proguard.classfile.instruction.visitor.InstructionVisitor
-
visitConstantInstruction
public void visitConstantInstruction(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.ConstantInstruction constantInstruction)- 指定者:
visitConstantInstruction在接口中proguard.classfile.instruction.visitor.InstructionVisitor
-
-