|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JExceptionHandler
A JExceptionHandler represents an entry in the exception_table of a Code attribute. A such entry describes one exception handler in the byte code array of a method (i.e. a try/catch statement). It contains :
JCodeAttribute| Method Summary | |
|---|---|
java.lang.String |
getCatchType()
Returns the name of the class of exceptions that a method is designated to catch. |
int |
getCatchTypeIndex()
Returns an index into the constant pool indicating a class of exceptions that this exception handler is designated to catch. |
int |
getEndPC()
Returns the end position in the byte code array at which the exception handler is active. |
int |
getHandlerPC()
Returns the start of this exception handler into the byte code array. |
int |
getStartPC()
Returns the start position in the byte code array at which the exception handler is active. |
void |
setCatchType(java.lang.String name)
Sets the index into the constant pool indicating the class of exceptions specified by name that a method is designated to catch. |
void |
setCatchTypeIndex(int index)
Sets the index into the constant pool indicating a class of exceptions that a method is designated to catch. |
void |
setEndPC(int endPC)
Sets the end position in the byte code array at which the exception handler is active. |
void |
setHandlerPC(int handlerPC)
Sets the start of this exception handler into the byte code array. |
void |
setStartPC(int startPC)
Sets the start position in the byte code array at which the exception handler is active. |
java.lang.String |
toString()
Returns a string representation of this JExceptionHandler object. |
| Methods inherited from interface fr.umlv.corosol.classfile.JClassFileItem |
|---|
getConstantPool, readItem, setConstantPool, writeItem |
| Method Detail |
|---|
int getStartPC()
int getEndPC()
int getHandlerPC()
java.lang.String toString()
toString in class java.lang.Objectvoid setStartPC(int startPC)
startPC - the start position at which the exception handler is activevoid setEndPC(int endPC)
endPC - the end position at which the exception handler is activevoid setHandlerPC(int handlerPC)
handlerPC - the start of this exception handler into the byte
code array.int getCatchTypeIndex()
java.lang.String getCatchType()
void setCatchTypeIndex(int index)
index - an index of a constant pool entry indicating a class of
exceptions that this exception handler is designated to catchvoid setCatchType(java.lang.String name)
name - the class of exceptions that a method is designated to catch
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||