|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.classfile.attribute.impl.DefaultJExceptionHandler
public class DefaultJExceptionHandler
The default implementation of the JExceptionHandler interface.
JCodeAttribute| Constructor Summary | |
|---|---|
DefaultJExceptionHandler()
The default constructor. |
|
| 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. |
JConstantPool |
getConstantPool()
Returns the constant pool of this classfile item. |
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 |
readItem(JClassFileInput in)
Extracts the data of this classfile part from the specified input stream. |
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 |
setConstantPool(JConstantPool constantPool)
Sets the constant pool of this classfile item. |
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. |
void |
writeItem(JClassFileOutput out)
Writes the data of this classfile item into a file via the specified output stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJExceptionHandler()
| Method Detail |
|---|
public int getStartPC()
getStartPC in interface JExceptionHandlerpublic int getEndPC()
getEndPC in interface JExceptionHandlerpublic int getHandlerPC()
getHandlerPC in interface JExceptionHandlerpublic int getCatchTypeIndex()
getCatchTypeIndex in interface JExceptionHandlerpublic java.lang.String getCatchType()
getCatchType in interface JExceptionHandlerpublic JConstantPool getConstantPool()
getConstantPool in interface JClassFileItempublic void setConstantPool(JConstantPool constantPool)
setConstantPool in interface JClassFileItemconstantPool - the constant Poolpublic void setStartPC(int startPC)
setStartPC in interface JExceptionHandlerstartPC - the start position at which the exception handler is activepublic void setEndPC(int endPC)
setEndPC in interface JExceptionHandlerendPC - the end position at which the exception handler is activepublic void setHandlerPC(int handlerPC)
setHandlerPC in interface JExceptionHandlerhandlerPC - the start of this exception handler into the byte
code array.public void setCatchTypeIndex(int index)
setCatchTypeIndex in interface JExceptionHandlerindex - an index of a constant pool entry indicating a class of
exceptions that this exception handler is designated to catchpublic void setCatchType(java.lang.String name)
setCatchType in interface JExceptionHandlername - the class of exceptions that a method is designated to catchpublic java.lang.String toString()
toString in interface JExceptionHandlertoString in class java.lang.Object
public void readItem(JClassFileInput in)
throws java.io.IOException
readItem in interface JClassFileItemin - a class file input stream
java.io.IOException - if an I/O error occurs when
reading the datas of this description of an exception handler
public void writeItem(JClassFileOutput out)
throws java.io.IOException
writeItem in interface JClassFileItemout - a class file output stream
java.io.IOException - if an I/O error occurs when
writing into the classfile
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||