proguard.classfile.editor
Class ExceptionInfoAdder

java.lang.Object
  extended by proguard.classfile.editor.ExceptionInfoAdder
All Implemented Interfaces:
ExceptionInfoVisitor

public class ExceptionInfoAdder
extends java.lang.Object
implements ExceptionInfoVisitor

This ExceptionInfoVisitor adds all exception information that it visits to the given target code attribute.


Constructor Summary
ExceptionInfoAdder(ProgramClass targetClass, CodeAttributeComposer targetComposer)
          Creates a new ExceptionAdder that will copy exceptions into the given target code attribute.
 
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

ExceptionInfoAdder

public ExceptionInfoAdder(ProgramClass targetClass,
                          CodeAttributeComposer targetComposer)
Creates a new ExceptionAdder that will copy exceptions into the given target code attribute.

Method Detail

visitExceptionInfo

public void visitExceptionInfo(Clazz clazz,
                               Method method,
                               CodeAttribute codeAttribute,
                               ExceptionInfo exceptionInfo)
Specified by:
visitExceptionInfo in interface ExceptionInfoVisitor