|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vladium.jcd.cls.attribute.DeclaredExceptionTable
final class DeclaredExceptionTable
| Field Summary | |
|---|---|
private IntVector |
m_exceptions
|
| Constructor Summary | |
|---|---|
DeclaredExceptionTable(int capacity)
|
|
| Method Summary | |
|---|---|
int |
add(int exception_index)
Appends a new exception class pointer to the collection. |
java.lang.Object |
clone()
Performs a deep copy. |
int |
get(int offset)
Returns the CONSTANT_Class_info constant
pool index for offset'th exception type thrown by the method that contains
this this exception index table in its ExceptionsAttribute_info attribute. |
long |
length()
Returns the total length of this table when converted to .class format [including 2 count bytes] |
int |
set(int offset,
int exception_index)
Replaces exception class pointer number 'offset' with new value 'interface_index'. |
int |
size()
Returns the number of exception types the containing method professes to throw. |
void |
writeInClassFormat(UDataOutputStream out)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private IntVector m_exceptions
| Constructor Detail |
|---|
DeclaredExceptionTable(int capacity)
| Method Detail |
|---|
public int get(int offset)
IDeclaredExceptionTableCONSTANT_Class_info constant
pool index for offset'th exception type thrown by the method that contains
this this exception index table in its ExceptionsAttribute_info attribute.
get in interface IDeclaredExceptionTableoffset - thrown exception class number [must be in [0, size()) range]
public int size()
IDeclaredExceptionTable
size in interface IDeclaredExceptionTablepublic long length()
IDeclaredExceptionTable
length in interface IDeclaredExceptionTablepublic java.lang.Object clone()
clone in interface IDeclaredExceptionTableclone in class java.lang.Object
public void writeInClassFormat(UDataOutputStream out)
throws java.io.IOException
writeInClassFormat in interface IClassFormatOutputjava.io.IOExceptionpublic int add(int exception_index)
IDeclaredExceptionTable
add in interface IDeclaredExceptionTableexception_index - constant pool index [must be positive; input not validated]
IDeclaredExceptionTable.size()-1 when called
after this method]
public int set(int offset,
int exception_index)
IDeclaredExceptionTable
set in interface IDeclaredExceptionTableoffset - thrown exception class number [must be in [0, size()) range]exception_index - constant pool index [must be positive; input not validated]
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||