Exceptions_attribute {
u2 attribute_name_index;
u4 attribute_length;
u2 number_of_exceptions;
u2 exception_index_table[number_of_exceptions];
}
Code
| Modifier and Type | Field and Description |
|---|---|
| private int[] |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | ExceptionTable(final int
Index in constant pool nameIndex, final int Content length in bytes length, final DataInput Input stream input, final ConstantPool Array of constants constantPool)Constructs object from input stream. |
| public | ExceptionTable(final int
Index in constant pool nameIndex, final int Content length in bytes length, final int[] Table of indices in constant pool exceptionIndexTable, final ConstantPool Array of constants constantPool)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(final Visitor
Visitor object v)Implements abstract org. Implements org. |
| public Attribute | Returns: deep copy of this attributeconstant pool to save. constantPool)Implements abstract org. |
| public void | dump(final DataOutputStream
Output file stream file)Overrides org. |
| public int[] | |
| public String[] | |
| public int | |
| public void | setExceptionIndexTable(final int[]
the list of exception indexes Also redefines number_of_exceptions according to table
length. exceptionIndexTable)
|
| public String | Returns: String representation, i.e., a list of thrown exceptions.Overrides org. |
| exceptionIndexTable | back to summary |
|---|---|
| private int[] exceptionIndexTable | |
| ExceptionTable | back to summary |
|---|---|
| public ExceptionTable(final ExceptionTable c) Initialize from another object. Note that both objects use the same references (shallow copy). Use copy() for a physical copy.
| |
| ExceptionTable | back to summary |
|---|---|
| pack-priv ExceptionTable(final int nameIndex, final int length, final DataInput input, final ConstantPool constantPool) throws IOException Constructs object from input stream.
| |
| ExceptionTable | back to summary |
|---|---|
public ExceptionTable(final int nameIndex, final int length, final int[] exceptionIndexTable, final ConstantPool constantPool)
| |
| accept | back to summary |
|---|---|
| public void accept(final Visitor v) Implements abstract org. Implements org. Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects. | |
| copy | back to summary |
|---|---|
| public Attribute copy(final ConstantPool constantPool) Implements abstract org.
| |
| dump | back to summary |
|---|---|
| public void dump(final DataOutputStream file) throws IOException Overrides org. Dump exceptions attribute to file stream in binary format.
| |
| getExceptionIndexTable | back to summary |
|---|---|
public int[] getExceptionIndexTable()
| |
| getExceptionNames | back to summary |
|---|---|
public String[] getExceptionNames()
| |
| getNumberOfExceptions | back to summary |
|---|---|
public int getNumberOfExceptions()
| |
| setExceptionIndexTable | back to summary |
|---|---|
public void setExceptionIndexTable(final int[] exceptionIndexTable)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |