Top Description Fields Constructors Methods
org.apache.commons.compress.harmony.unpack200.bytecode

public Class ExceptionTableEntry

extends Object
Class Inheritance
Imports
java.io.DataOutputStream, .IOException, java.util.List

An entry in an exception table.

Field Summary

Modifier and TypeField and Description
private final CPClass
private int
private final int
private int
private final int
private int
private final int
private int

Constructor Summary

AccessConstructor and Description
public
ExceptionTableEntry(final int
int
startPC
,
final int
int
endPC
,
final int
int
handlerPC
,
final CPClass
CPClass (if it's a normal catch) or null (if it's a finally clause).
catchType
)

Constructs a new ExceptionTableEntry.

Method Summary

Modifier and TypeMethod and Description
public CPClass
public void
renumber(final List<Integer> byteCodeOffsets)

public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

catchTypeback to summary
private final CPClass catchType
catchTypeIndexback to summary
private int catchTypeIndex
endPCback to summary
private final int endPC
endPcRenumberedback to summary
private int endPcRenumbered
handlerPCback to summary
private final int handlerPC
handlerPcRenumberedback to summary
private int handlerPcRenumbered
startPCback to summary
private final int startPC
startPcRenumberedback to summary
private int startPcRenumbered

Constructor Detail

ExceptionTableEntryback to summary
public ExceptionTableEntry(final int startPC, final int endPC, final int handlerPC, final CPClass catchType)

Constructs a new ExceptionTableEntry. Exception tables are of two kinds: either a normal one (with a Throwable as the catchType) or a finally clause (which has no catchType). In the class file, the finally clause is represented as catchType == 0. To create a finally clause with this method, pass in null for the catchType.

Parameters
startPC:int

int

endPC:int

int

handlerPC:int

int

catchType:CPClass

CPClass (if it's a normal catch) or null (if it's a finally clause).

Method Detail

getCatchTypeback to summary
public CPClass getCatchType()
renumberback to summary
public void renumber(final List<Integer> byteCodeOffsets)
resolveback to summary
public void resolve(final ClassConstantPool pool)
writeback to summary
public void write(final DataOutputStream dos) throws IOException