proguard.classfile.editor
Class ExceptionsAttributeEditor

java.lang.Object
  extended by proguard.classfile.editor.ExceptionsAttributeEditor

public class ExceptionsAttributeEditor
extends java.lang.Object

This class can add exceptions to a given exceptions attribute. Exceptions to be added must have been added to the constant pool and filled out beforehand.


Constructor Summary
ExceptionsAttributeEditor(ExceptionsAttribute targetExceptionsAttribute)
          Creates a new ExceptionsAttributeEditor that will edit exceptions in the given exceptions attribute.
 
Method Summary
 void addException(int exceptionIndex)
          Adds a given exception to the exceptions attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionsAttributeEditor

public ExceptionsAttributeEditor(ExceptionsAttribute targetExceptionsAttribute)
Creates a new ExceptionsAttributeEditor that will edit exceptions in the given exceptions attribute.

Method Detail

addException

public void addException(int exceptionIndex)
Adds a given exception to the exceptions attribute.