public class ExceptionTableEntry
extends java.lang.Object
Code attribute. This denotes
either a catch or finally block (the section of code it
covers, the type of Throwable it handles, and the location of the
exception handler code).| Constructor and Description |
|---|
ExceptionTableEntry(ClassFile cf)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCaughtThrowableType(boolean fullyQualified)
Returns the name of the Throwable type caught and handled
by this exception handler.
|
int |
getEndPC() |
int |
getHandlerPC() |
int |
getStartPC() |
static ExceptionTableEntry |
read(ClassFile cf,
java.io.DataInputStream in)
Reads an exception table entry from an input stream.
|
public ExceptionTableEntry(ClassFile cf)
cf - The parent class file.public java.lang.String getCaughtThrowableType(boolean fullyQualified)
fullyQualified - Whether the name should be fully qualified.null
if this entry denotes a finally block.public int getEndPC()
public int getHandlerPC()
public int getStartPC()
public static ExceptionTableEntry read(ClassFile cf, java.io.DataInputStream in) throws java.io.IOException
cf - The class file.in - The input stream to read from.java.io.IOException - If an IO error occurs.