Package proguard.exception
Class InstructionExceptionFormatter
- java.lang.Object
-
- proguard.exception.InstructionExceptionFormatter
-
public class InstructionExceptionFormatter extends java.lang.Object
This class is used to format an exception with the previous instructions. It is used by thePartialEvaluator
andStackSizeComputer
to print the erroneous instruction and any previous bytecode instructions and the next one to give some context.
-
-
Constructor Summary
Constructors Constructor Description InstructionExceptionFormatter(org.apache.logging.log4j.Logger logger, CircularIntBuffer offsetBuffer, byte[] code, Clazz clazz, Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
printException(ProguardCoreException exception)
void
printException(ProguardCoreException exception, TracedVariables variables, TracedStack stack)
void
registerInstructionOffset(int offset)
-
-
-
Constructor Detail
-
InstructionExceptionFormatter
public InstructionExceptionFormatter(org.apache.logging.log4j.Logger logger, CircularIntBuffer offsetBuffer, byte[] code, Clazz clazz, Method method)
-
-
Method Detail
-
registerInstructionOffset
public void registerInstructionOffset(int offset)
-
printException
public void printException(ProguardCoreException exception)
-
printException
public void printException(ProguardCoreException exception, TracedVariables variables, TracedStack stack)
-
-