org.ow2.asmdex.structureWriter
Class ExceptionHandler

java.lang.Object
  extended by org.ow2.asmdex.structureWriter.ExceptionHandler

public class ExceptionHandler
extends java.lang.Object

Class used to store an Exception Handler, that is a Label to the Handler, and the Type of the Exception. The Type can be Null, which means the Handler is a CatchAll.

Author:
Julien Névo.

Constructor Summary
ExceptionHandler(Label handler, java.lang.String type)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Label getHandler()
          Returns the Label pointing on the Handler of the exception.
 java.lang.String getType()
          Returns the Type of the exception.
 int hashCode()
           
 boolean isCatchAll()
          Returns True if the ExceptionHandler concerns a CatchAll.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandler

public ExceptionHandler(Label handler,
                        java.lang.String type)
Constructor.

Parameters:
handler - Label to the Handler of the Exception.
type - Type of the Exception, or Null if the Handler is a CatchAll.
Method Detail

isCatchAll

public boolean isCatchAll()
Returns True if the ExceptionHandler concerns a CatchAll.

Returns:
True if the ExceptionHandler concerns a CatchAll.

getHandler

public Label getHandler()
Returns the Label pointing on the Handler of the exception.

Returns:
the Label pointing on the Handler of the exception.

getType

public java.lang.String getType()
Returns the Type of the exception. May be null (for catch all).

Returns:
the Type of the exception. May be null (for catch all).

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object