org.ow2.asmdex.structureWriter
Class EncodedCatchHandler

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

public class EncodedCatchHandler
extends java.lang.Object

Class representing an encoded_catch_handler. It also possibly contains encoded_type_addr_pair. It is only useful when encoding the Method it is contained in, in order to allow uniqueness of this structure.

Author:
Julien Névo

Constructor Summary
EncodedCatchHandler(ConstantPool constantPool)
          Creates the catch handler block
 
Method Summary
 void addTypeAddrPair(java.lang.String type, Label exceptionHandler)
          Add a new exception handler
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 void write(ByteVector out)
          Write to a byte vector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodedCatchHandler

public EncodedCatchHandler(ConstantPool constantPool)
Creates the catch handler block

Parameters:
constantPool -
Method Detail

addTypeAddrPair

public void addTypeAddrPair(java.lang.String type,
                            Label exceptionHandler)
Add a new exception handler

Parameters:
type - the type of exceptions caught
exceptionHandler - label where the handler is

write

public void write(ByteVector out)
Write to a byte vector

Parameters:
out - where to write to

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