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
This ExceptionInfoVisitor delegates its visits to another given
ExceptionInfoVisitor, but only when the visited exception
overlaps with the given instruction range.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
visitExceptionInfo
public void visitExceptionInfo(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
ExceptionInfo exceptionInfo)
- Specified by:
visitExceptionInfo in interface ExceptionInfoVisitor