final class ExceptionHandlerTable extends java.lang.Object implements IExceptionHandlerTable
| Modifier and Type | Field and Description |
|---|---|
private java.util.List |
m_exceptions |
| Constructor and Description |
|---|
ExceptionHandlerTable(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
add(Exception_info exception)
Adds a new Exception_info descriptor to this collection.
|
java.lang.Object |
clone()
Performs a deep copy.
|
Exception_info |
get(int offset)
Returns
Exception_info descriptor at a given offset. |
long |
length()
Returns the total length of this table when converted to
.class format [including 2 count bytes]
|
Exception_info |
set(int offset,
Exception_info exception)
Replaces the Exception_info descriptor at a given offset.
|
int |
size()
Returns the number of descriptors in this collection [can be 0].
|
void |
writeInClassFormat(UDataOutputStream out) |
public Exception_info get(int offset)
IExceptionHandlerTableException_info descriptor at a given offset.get in interface IExceptionHandlerTableoffset - exception offset [must be in [0, size()) range; input not checked]public int size()
IExceptionHandlerTablesize in interface IExceptionHandlerTablepublic long length()
IExceptionHandlerTablelength in interface IExceptionHandlerTablepublic java.lang.Object clone()
clone in interface IExceptionHandlerTableclone in class java.lang.Objectpublic void writeInClassFormat(UDataOutputStream out) throws java.io.IOException
writeInClassFormat in interface IClassFormatOutputjava.io.IOExceptionpublic int add(Exception_info exception)
IExceptionHandlerTableadd in interface IExceptionHandlerTableexception - new exception descriptor [may not be null]public Exception_info set(int offset, Exception_info exception)
IExceptionHandlerTableset in interface IExceptionHandlerTableoffset - exception offset [must be in [0, size()) range; input not checked]exception - new exception descriptor [may not be null]