proguard.classfile.visitor
Class ExceptionRangeFilter

java.lang.Object
  extended by 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.


Constructor Summary
ExceptionRangeFilter(int startOffset, int endOffset, ExceptionInfoVisitor exceptionInfoVisitor)
          Creates a new ExceptionRangeFilter.
 
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

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 interface ExceptionInfoVisitor