Package proguard.exception
Class InstructionExceptionFormatter
java.lang.Object
proguard.exception.InstructionExceptionFormatter
This class is used to format an exception with the previous instructions. It is used by the
PartialEvaluator and StackSizeComputer to print the erroneous instruction and
any previous bytecode instructions and the next one to give some context.-
Constructor Summary
ConstructorsConstructorDescriptionInstructionExceptionFormatter(org.apache.logging.log4j.Logger logger, CircularIntBuffer offsetBuffer, byte[] code, Clazz clazz, Method method) -
Method Summary
Modifier and TypeMethodDescriptionvoidprintException(ProguardCoreException exception) voidprintException(ProguardCoreException exception, TracedVariables variables, TracedStack stack) voidregisterInstructionOffset(int offset)
-
Constructor Details
-
InstructionExceptionFormatter
public InstructionExceptionFormatter(org.apache.logging.log4j.Logger logger, CircularIntBuffer offsetBuffer, byte[] code, Clazz clazz, Method method)
-
-
Method Details
-
registerInstructionOffset
public void registerInstructionOffset(int offset) -
printException
-
printException
public void printException(ProguardCoreException exception, TracedVariables variables, TracedStack stack)
-