|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.classloader.ExceptionHandlerMap
public final class ExceptionHandlerMap
A java method's try/catch/finally information.
Field Summary | |
---|---|
private int[] |
endPCs
bytecode offset at which i-th try block ends (exclusive) 0-indexed from start of method's bytecodes[] |
private TypeReference[] |
exceptionTypes
exception type for which i-th handler is to be invoked - something like "java/lang/IOException". |
private int[] |
handlerPCs
bytecode offset at which exception handler for i-th try block begins 0-indexed from start of method's bytecodes[] |
private int[] |
startPCs
bytecode offset at which i-th try block begins 0-indexed from start of method's bytecodes[] |
Constructor Summary | |
---|---|
private |
ExceptionHandlerMap(int[] startPCs,
int[] endPCs,
int[] handlerPCs,
TypeReference[] exceptionTypes)
Construct the exception handler map |
Method Summary | |
---|---|
(package private) ExceptionHandlerMap |
deepCopy()
|
int[] |
getEndPC()
|
TypeReference |
getExceptionType(int i)
|
TypeReference[] |
getExceptionTypes()
|
int[] |
getHandlerPC()
|
int[] |
getStartPC()
|
(package private) static ExceptionHandlerMap |
readExceptionHandlerMap(DataInputStream input,
int[] constantPool)
Read the exception handler map |
void |
setEndPC(int[] newPCs)
|
void |
setHandlerPC(int[] newPCs)
|
void |
setStartPC(int[] newPCs)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int[] startPCs
private int[] endPCs
private int[] handlerPCs
private final TypeReference[] exceptionTypes
Constructor Detail |
---|
private ExceptionHandlerMap(int[] startPCs, int[] endPCs, int[] handlerPCs, TypeReference[] exceptionTypes)
startPCs
- endPCs
- handlerPCs
- exceptionTypes
- Method Detail |
---|
public int[] getStartPC()
public int[] getEndPC()
public int[] getHandlerPC()
public TypeReference[] getExceptionTypes()
public TypeReference getExceptionType(int i)
public void setStartPC(int[] newPCs)
public void setEndPC(int[] newPCs)
public void setHandlerPC(int[] newPCs)
static ExceptionHandlerMap readExceptionHandlerMap(DataInputStream input, int[] constantPool) throws IOException
IOException
ExceptionHandlerMap deepCopy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |