Class ExceptionTableEntry
- java.lang.Object
-
- org.apache.commons.compress.harmony.unpack200.bytecode.ExceptionTableEntry
-
public class ExceptionTableEntry extends java.lang.Object
An entry in an exception table.
-
-
Constructor Summary
Constructors Constructor Description ExceptionTableEntry(int startPC, int endPC, int handlerPC, CPClass catchType)
Create a new ExceptionTableEntry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPClass
getCatchType()
void
renumber(java.util.List byteCodeOffsets)
void
resolve(ClassConstantPool pool)
void
write(java.io.DataOutputStream dos)
-
-
-
Constructor Detail
-
ExceptionTableEntry
public ExceptionTableEntry(int startPC, int endPC, int handlerPC, CPClass catchType)
Create a new ExceptionTableEntry. Exception tables are of two kinds: either a normal one (with a Throwable as the catch_type) or a finally clause (which has no catch_type). In the class file, the finally clause is represented as catch_type == 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
-
write
public void write(java.io.DataOutputStream dos) throws java.io.IOException
- Throws:
java.io.IOException
-
renumber
public void renumber(java.util.List byteCodeOffsets)
-
getCatchType
public CPClass getCatchType()
-
resolve
public void resolve(ClassConstantPool pool)
-
-