public class Catch
extends java.lang.Object
Code.code| Constructor | Description |
|---|---|
Catch(int startPC,
int endPC,
int handlerPC,
int catchType) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
catchTypeIndex() |
Get the index into the constant pool of the type of exception to catch.
|
java.lang.Object |
clone() |
|
int |
endPC() |
Get the end PC of the protected block.
|
int |
handlerPC() |
Get the start PC of the exception handler.
|
void |
setCatchTypeIndex(int index) |
Set the index into the constant pool of the type of exception to catch.
|
void |
setEndPC(int pc) |
Set the end PC of the protected block.
|
void |
setHandlerPC(int pc) |
Set the start PC of the exception handler.
|
void |
setStartPC(int pc) |
Set the start PC of the protected block.
|
int |
startPC() |
Get the start PC of the protected block.
|
java.lang.String |
toString() |
Returns a string representation of the catch information.
|
public Catch(int startPC,
int endPC,
int handlerPC,
int catchType)
startPC - The start PC of the protected block.endPC - The PC of the instruction after the end of the protected
block.handlerPC - The start PC of the exception handler.catchType - The type of exception to catch.public int startPC()
setStartPC(int)public void setStartPC(int pc)
pc - The start PC of the protected block.startPCpublic int endPC()
setEndPC(int)public void setEndPC(int pc)
pc - The PC of the instruction after the end of the protected
block.endPCpublic int handlerPC()
setHandlerPC(int)public void setHandlerPC(int pc)
pc - The start PC of the exception handler.handlerPCpublic int catchTypeIndex()
setCatchTypeIndex(int)public void setCatchTypeIndex(int index)
index - Index of the type of exception to catch.catchTypeIndex()public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object