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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionHandler
public ExceptionHandler(Location startLocation,
Location endLocation,
Location catchLocation,
ConstantClassInfo catchType)
- Parameters:
startLocation - endLocation - catchLocation - catchType - if null, then catch every object.
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