com.go.trove.classfile
Class ExceptionHandler

java.lang.Object
  |
  +--com.go.trove.classfile.ExceptionHandler
All Implemented Interfaces:
java.lang.Comparable, LocationRange

public class ExceptionHandler
extends java.lang.Object
implements LocationRange

This class corresponds to the exception_table structure as defined in section 4.7.4 of The Java Virtual Machine Specification.

Version:
23 , 9/07/00
Author:
Brian S O'Neill

Constructor Summary
ExceptionHandler(Location startLocation, Location endLocation, Location catchLocation, ConstantClassInfo catchType)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 Location getCatchLocation()
           
 ConstantClassInfo getCatchType()
          Returns null if every object is caught by this handler.
 Location getEndLocation()
          Returns end of this location range, exclusive.
 Location getStartLocation()
          Returns the start of this location range, inclusive.
 void writeTo(java.io.DataOutput dout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandler

public ExceptionHandler(Location startLocation,
                        Location endLocation,
                        Location catchLocation,
                        ConstantClassInfo catchType)
Parameters:
startLocation -  
endLocation -  
catchLocation -  
catchType - if null, then catch every object.
Method Detail

getStartLocation

public Location getStartLocation()
Description copied from interface: LocationRange
Returns the start of this location range, inclusive.
Specified by:
getStartLocation in interface LocationRange

getEndLocation

public Location getEndLocation()
Description copied from interface: LocationRange
Returns end of this location range, exclusive.
Specified by:
getEndLocation in interface LocationRange

getCatchLocation

public Location getCatchLocation()

getCatchType

public ConstantClassInfo getCatchType()
Returns null if every object is caught by this handler.

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

writeTo

public void writeTo(java.io.DataOutput dout)
             throws java.io.IOException