|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vladium.jcd.cls.attribute.ExceptionHandlerTable
final class ExceptionHandlerTable
Field Summary | |
---|---|
private java.util.List |
m_exceptions
|
Constructor Summary | |
---|---|
ExceptionHandlerTable(int capacity)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List m_exceptions
Constructor Detail |
---|
ExceptionHandlerTable(int capacity)
Method Detail |
---|
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]
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |