Additional top-level class in compilation unit: ExceptionTableEntry.
exception_table[] of Code_attribute.
| Modifier and Type | Field and Description |
|---|---|
| private ConstPool | |
| private List |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int
index (>= 0) at which the entry is to be inserted. index, ExceptionTable table, int the offset added to the code position. offset)Copies the given exception table at the specified position in the table. |
| public void | add(int
index (>= 0) at which the entry is to be inserted. index, int startPcendPchandlerPccatchTypeAdds a new entry at the specified position in the table. |
| public void | add(int
startPcendPchandlerPccatchTypeAppends a new entry at the end of the table. |
| public int | Returns: an index into theconstant_pool table,
or zero if this exception handler is for all exceptions.the n-th (>= 0). nth)Returns |
| public Object | |
| public ExceptionTable | |
| public int | |
| public int | |
| public void | remove(int
the index of the removed entry. index)Removes the entry at the specified position in the table. |
| public void | |
| public void | |
| public void | |
| public void | |
| pack-priv void | |
| private static int | |
| public int | |
| public int | |
| pack-priv void |
| constPool | back to summary |
|---|---|
| private ConstPool constPool | |
| entries | back to summary |
|---|---|
| private List<ExceptionTableEntry> entries | |
| ExceptionTable | back to summary |
|---|---|
| public ExceptionTable(ConstPool cp) Constructs an
| |
| ExceptionTable | back to summary |
|---|---|
| pack-priv ExceptionTable(ConstPool cp, DataInputStream in) throws IOException | |
| add | back to summary |
|---|---|
| public void add(int index, ExceptionTable table, int offset) Copies the given exception table at the specified position in the table.
| |
| add | back to summary |
|---|---|
| public void add(int index, int start, int end, int handler, int type) Adds a new entry at the specified position in the table.
| |
| add | back to summary |
|---|---|
| public void add(int start, int end, int handler, int type) Appends a new entry at the end of the table.
| |
| catchType | back to summary |
|---|---|
| public int catchType(int nth) Returns
| |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides java. Creates and returns a copy of this object. The constant pool object is shared between this object and the cloned object.
| |
| copy | back to summary |
|---|---|
| public ExceptionTable copy(ConstPool newCp, Map<String, String> classnames) Makes a copy of this | |
| endPc | back to summary |
|---|---|
| public int endPc(int nth) Returns
| |
| handlerPc | back to summary |
|---|---|
| public int handlerPc(int nth) Returns
| |
| remove | back to summary |
|---|---|
| public void remove(int index) Removes the entry at the specified position in the table.
| |
| setCatchType | back to summary |
|---|---|
| public void setCatchType(int nth, int value) Sets
| |
| setEndPc | back to summary |
|---|---|
| public void setEndPc(int nth, int value) Sets
| |
| setHandlerPc | back to summary |
|---|---|
| public void setHandlerPc(int nth, int value) Sets
| |
| setStartPc | back to summary |
|---|---|
| public void setStartPc(int nth, int value) Sets
| |
| shiftPc | back to summary |
|---|---|
| pack-priv void shiftPc(int where, int gapLength, boolean exclusive) | |
| shiftPc | back to summary |
|---|---|
| private static int shiftPc(int pc, int where, int gapLength, boolean exclusive) | |
| size | back to summary |
|---|---|
| public int size() Returns | |
| startPc | back to summary |
|---|---|
| public int startPc(int nth) Returns
| |
| write | back to summary |
|---|---|
| pack-priv void write(DataOutputStream out) throws IOException | |