Class ExceptionTableEntry
- java.lang.Object
-
- kala.compress.harmony.unpack200.bytecode.ExceptionTableEntry
-
public class ExceptionTableEntry extends java.lang.ObjectAn entry in an exception table.
-
-
Field Summary
Fields Modifier and Type Field Description private CPClasscatchTypeprivate intcatchTypeIndexprivate intendPCprivate intendPcRenumberedprivate inthandlerPCprivate inthandlerPcRenumberedprivate intstartPCprivate intstartPcRenumbered
-
Constructor Summary
Constructors Constructor Description ExceptionTableEntry(int startPC, int endPC, int handlerPC, CPClass catchType)Constructs a new ExceptionTableEntry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPClassgetCatchType()voidrenumber(java.util.List<java.lang.Integer> byteCodeOffsets)voidresolve(ClassConstantPool pool)voidwrite(java.io.DataOutputStream dos)
-
-
-
Field Detail
-
startPC
private final int startPC
-
endPC
private final int endPC
-
handlerPC
private final int handlerPC
-
catchType
private final CPClass catchType
-
startPcRenumbered
private int startPcRenumbered
-
endPcRenumbered
private int endPcRenumbered
-
handlerPcRenumbered
private int handlerPcRenumbered
-
catchTypeIndex
private int catchTypeIndex
-
-
Constructor Detail
-
ExceptionTableEntry
public ExceptionTableEntry(int startPC, int endPC, int handlerPC, 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- intendPC- inthandlerPC- intcatchType- CPClass (if it's a normal catch) or null (if it's a finally clause).
-
-
Method Detail
-
getCatchType
public CPClass getCatchType()
-
renumber
public void renumber(java.util.List<java.lang.Integer> byteCodeOffsets)
-
resolve
public void resolve(ClassConstantPool pool)
-
write
public void write(java.io.DataOutputStream dos) throws java.io.IOException- Throws:
java.io.IOException
-
-