proguard.classfile.visitor
Class ExceptionHandlerFilter

java.lang.Object
  extended by proguard.classfile.visitor.ExceptionHandlerFilter
All Implemented Interfaces:
ExceptionInfoVisitor

public class ExceptionHandlerFilter
extends java.lang.Object
implements ExceptionInfoVisitor

This ExceptionInfoVisitor delegates its visits to another given ExceptionInfoVisitor, but only when the visited exception targets an instruction in the given range of offsets.


Constructor Summary
ExceptionHandlerFilter(int startOffset, int endOffset, ExceptionInfoVisitor exceptionInfoVisitor)
          Creates a new ExceptionHandlerFilter.
 
Method Summary
 void visitExceptionInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, ExceptionInfo exceptionInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandlerFilter

public ExceptionHandlerFilter(int startOffset,
                              int endOffset,
                              ExceptionInfoVisitor exceptionInfoVisitor)
Creates a new ExceptionHandlerFilter.

Parameters:
startOffset - the start of the instruction offset range.
endOffset - the end of the instruction offset 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 interface ExceptionInfoVisitor