Package proguard.classfile.visitor
Class ExceptionRangeFilter
- java.lang.Object
-
- proguard.classfile.visitor.ExceptionRangeFilter
-
- All Implemented Interfaces:
ExceptionInfoVisitor
public class ExceptionRangeFilter extends java.lang.Object implements ExceptionInfoVisitor
ThisExceptionInfoVisitor
delegates its visits to another givenExceptionInfoVisitor
, but only when the visited exception overlaps with the given instruction range.
-
-
Constructor Summary
Constructors Constructor Description ExceptionRangeFilter(int startOffset, int endOffset, ExceptionInfoVisitor exceptionInfoVisitor)
Creates a new ExceptionRangeFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitExceptionInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, ExceptionInfo exceptionInfo)
-
-
-
Constructor Detail
-
ExceptionRangeFilter
public ExceptionRangeFilter(int startOffset, int endOffset, ExceptionInfoVisitor exceptionInfoVisitor)
Creates a new ExceptionRangeFilter.- Parameters:
startOffset
- the start offset of the instruction range.endOffset
- the end offset of the instruction range.exceptionInfoVisitor
- the ExceptionInfoVisitor to which visits will be delegated.
-
-
Method Detail
-
visitExceptionInfo
public void visitExceptionInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, ExceptionInfo exceptionInfo)
- Specified by:
visitExceptionInfo
in interfaceExceptionInfoVisitor
-
-