org.ow2.asmdex.structureReader
Class TryCatch

java.lang.Object
  extended by org.ow2.asmdex.structureReader.TryCatch

public class TryCatch
extends java.lang.Object

Contains the data of a Try/Catch structure for the Reader.

Author:
Julien Névo

Constructor Summary
TryCatch(Label start, Label end, Label handler, java.lang.String type)
          Constructor of a Try/Catch structure.
 
Method Summary
 Label getEnd()
          Label of last instruction protected
 Label getHandler()
          Label of exception handler
 Label getStart()
          Label of first instruction protected
 java.lang.String getType()
          Type of the exception caught
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TryCatch

public TryCatch(Label start,
                Label end,
                Label handler,
                java.lang.String type)
Constructor of a Try/Catch structure.

Parameters:
start - Label pointing on the Instruction starting the try/catch block.
end - Label pointing on the Instruction following the end of the try/catch block.
handler - Label pointing on the Handler of the exception.
type - Type of the exception. May be null (for catch all).
Method Detail

getStart

public Label getStart()
Label of first instruction protected

Returns:
label of first instruction

getEnd

public Label getEnd()
Label of last instruction protected

Returns:
label of last instruction

getHandler

public Label getHandler()
Label of exception handler

Returns:
label of handler

getType

public java.lang.String getType()
Type of the exception caught

Returns:
type name