public class ExceptionHandler<L extends Location> extends Object implements LocationRange<L>
| Constructor and Description |
|---|
ExceptionHandler(L startLocation,
L endLocation,
L catchLocation,
ConstantClassInfo catchType) |
| Modifier and Type | Method and Description |
|---|---|
L |
getCatchLocation() |
ConstantClassInfo |
getCatchType()
Returns null if every object is caught by this handler.
|
L |
getEndLocation()
Returns end of this location range, exclusive.
|
L |
getStartLocation()
Returns the start of this location range, inclusive.
|
static ExceptionHandler<FixedLocation> |
readFrom(ConstantPool cp,
DataInput din) |
void |
writeTo(DataOutput dout) |
public ExceptionHandler(L startLocation, L endLocation, L catchLocation, ConstantClassInfo catchType)
startLocation - endLocation - catchLocation - catchType - if null, then catch every object.public L getStartLocation()
LocationRangegetStartLocation in interface LocationRange<L extends Location>public L getEndLocation()
LocationRangegetEndLocation in interface LocationRange<L extends Location>public L getCatchLocation()
public ConstantClassInfo getCatchType()
public void writeTo(DataOutput dout) throws IOException
IOExceptionpublic static ExceptionHandler<FixedLocation> readFrom(ConstantPool cp, DataInput din) throws IOException
IOExceptionCopyright © 2004-2015 Cojen. All Rights Reserved.