Package proguard.classfile.visitor
Class ExceptionOffsetFilter
- java.lang.Object
-
- proguard.classfile.visitor.ExceptionOffsetFilter
-
- All Implemented Interfaces:
ExceptionInfoVisitor
public class ExceptionOffsetFilter extends java.lang.Object implements ExceptionInfoVisitor
ThisExceptionInfoVisitordelegates its visits to another givenExceptionInfoVisitor, but only when the visited exception covers the instruction at the given offset.
-
-
Constructor Summary
Constructors Constructor Description ExceptionOffsetFilter(int instructionOffset, ExceptionInfoVisitor exceptionInfoVisitor)Creates a new ExceptionOffsetFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisitExceptionInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, ExceptionInfo exceptionInfo)
-
-
-
Constructor Detail
-
ExceptionOffsetFilter
public ExceptionOffsetFilter(int instructionOffset, ExceptionInfoVisitor exceptionInfoVisitor)Creates a new ExceptionOffsetFilter.- Parameters:
instructionOffset- the instruction offset.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:
visitExceptionInfoin interfaceExceptionInfoVisitor
-
-