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)
IExceptionHandlerTable
Exception_info
descriptor at a given offset.get
in interface IExceptionHandlerTable
offset
- exception offset [must be in [0, size()) range; input not checked]public int size()
IExceptionHandlerTable
size
in interface IExceptionHandlerTable
public long length()
IExceptionHandlerTable
length
in interface IExceptionHandlerTable
public java.lang.Object clone()
clone
in interface IExceptionHandlerTable
clone
in class java.lang.Object
public void writeInClassFormat(UDataOutputStream out) throws java.io.IOException
writeInClassFormat
in interface IClassFormatOutput
java.io.IOException
public int add(Exception_info exception)
IExceptionHandlerTable
add
in interface IExceptionHandlerTable
exception
- new exception descriptor [may not be null]public Exception_info set(int offset, Exception_info exception)
IExceptionHandlerTable
set
in interface IExceptionHandlerTable
offset
- exception offset [must be in [0, size()) range; input not checked]exception
- new exception descriptor [may not be null]