|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExceptionTableEntry
Class representing an ExceptionTable generic entry. These entries describe the
exception handlers behaviour in the code array of a Code attribute. An entry is
made up of four elements: start_pc, end_pc, handler_pc, catch_type. These entries
are stored within a Code attribute ExceptionTable.
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
void |
fromStream(java.io.DataInputStream dis)
Reads the entry from the given inputstream. |
CodeAttribute |
getAttributeContainer()
Get the reference to the CodeAttribute this ExceptionTableEntry
is held by. |
int |
getCatchType()
If the value of type is non zero, it must refer to an entry of the constant
pool table of type ConstantClass (ConstantClassInfo). |
int |
getEndPc()
Gets the index at which the exception handler becomes inactive. |
int |
getHandlerPc()
Gets the start of the exception handler. |
int |
getStartPc()
Gets the index at which the exception handler begins being active. |
void |
setAttributeContainer(CodeAttribute attribute)
Set the reference to the CodeAttribute this ExceptionTableEntry
is held by. |
void |
setCatchType(int type)
If the value of type is non zero, it must refer to an entry of the constant
pool table of type ConstantClass (ConstantClassInfo). |
void |
setEndPc(int end)
Sets the index at which the exception handler becomes inactive. |
void |
setHandlerPc(int handler)
Sets the start of the exception handler. |
void |
setStartPc(int start)
Sets the index at which the exception handler begins being active. |
void |
toStream(java.io.DataOutputStream dos)
Writes this entry to the given output stream. |
void |
updateRefs(int offset)
Updates all the reference to the constant pool table |
boolean |
validate()
This method has to perform a validation process over the ExceptionTableEntry
according to what specified by the JVM Official Specification. |
| Methods inherited from interface jef.dna.util.BytesCountable |
|---|
getBytesCount |
| Method Detail |
|---|
void setAttributeContainer(CodeAttribute attribute)
CodeAttribute this ExceptionTableEntry
is held by.
attribute - The CodeAttribute containerCodeAttribute getAttributeContainer()
CodeAttribute this ExceptionTableEntry
is held by.
CodeAttribute containervoid setStartPc(int start)
code array of Code attribute
instance.
- Parameters:
start - The index at which the exc. handler becomes active
int getStartPc()
code array of Code attribute
instance.
- Returns:
- int The index at which the exc. handler becomes active
void setEndPc(int end)
code array of Code attribute
instance.
- Parameters:
end - The index at which the exc. handler gets deactivated
int getEndPc()
code array of Code attribute
instance.
- Returns:
- int The index at which the exc. handler gets deactivated
void setHandlerPc(int handler)
code array of Code attribute
instance.
- Parameters:
handler - The start of the exception handler
int getHandlerPc()
code array of Code attribute
instance.
- Returns:
- int The start of the exception handler
void setCatchType(int type)
type is non zero, it must refer to an entry of the constant
pool table of type ConstantClass (ConstantClassInfo).
type - Valid index into the constant pool tableint getCatchType()
type is non zero, it must refer to an entry of the constant
pool table of type ConstantClass (ConstantClassInfo).
void toStream(java.io.DataOutputStream dos)
throws java.io.IOException
dos - Output stream to write the entry to
java.io.IOException - Thrown should something go wrong with the provided output stream
void fromStream(java.io.DataInputStream dis)
throws java.io.IOException
dis - Input stream to read the entry from
java.io.IOException - Thrown should something go wrong with the provided input streamvoid updateRefs(int offset)
offset - The offset to be applied
boolean validate()
throws ExceptionTableEntryValidationException,
MissingDnaContainerException,
MissingAttributeContainerException,
MissingCPTableException
ExceptionTableEntry
according to what specified by the JVM Official Specification.
ExceptionTableEntryValidationException - The validation failed
MissingDnaContainerException - Is missing the reference to the Dna instance this
ExceptionTableEntry belongs to
MissingCPTableException - Cannot access the constant pool table
MissingAttributeContainerException - Is missing the reference to the Attribute this
ExceptionTableEntry belongs to
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||