proguard.classfile.visitor
Class ExceptionExcludedOffsetFilter

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

public class ExceptionExcludedOffsetFilter
extends java.lang.Object
implements ExceptionInfoVisitor

This ExceptionInfoVisitor delegates its visits to another given ExceptionInfoVisitor, but only when the visited exception does not cover the instruction at the given offset.


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

ExceptionExcludedOffsetFilter

public ExceptionExcludedOffsetFilter(int instructionOffset,
                                     ExceptionInfoVisitor exceptionInfoVisitor)
Creates a new ExceptionExcludedOffsetFilter.

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:
visitExceptionInfo in interface ExceptionInfoVisitor