|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cojen.classfile.ExceptionHandler
public class ExceptionHandler
This class corresponds to the exception_table structure as defined in section 4.7.4 of The Java Virtual Machine Specification.
Constructor Summary | |
---|---|
ExceptionHandler(Location startLocation,
Location endLocation,
Location catchLocation,
ConstantClassInfo catchType)
|
Method Summary | |
---|---|
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. |
static ExceptionHandler |
readFrom(ConstantPool cp,
DataInput din)
|
void |
writeTo(DataOutput dout)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExceptionHandler(Location startLocation, Location endLocation, Location catchLocation, ConstantClassInfo catchType)
startLocation
- endLocation
- catchLocation
- catchType
- if null, then catch every object.Method Detail |
---|
public Location getStartLocation()
LocationRange
getStartLocation
in interface LocationRange
public Location getEndLocation()
LocationRange
getEndLocation
in interface LocationRange
public Location getCatchLocation()
public ConstantClassInfo getCatchType()
public void writeTo(DataOutput dout) throws IOException
IOException
public static ExceptionHandler readFrom(ConstantPool cp, DataInput din) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |