Deprecated
as a consequence of Constants being deprecated. See corresponding docs for further information.
Code_attribute {
u2 attribute_name_index;
u4 attribute_length;
u2 max_stack;
u2 max_locals;
u4 code_length;
u1 code[code_length];
u2 exception_table_length;
{
u2 start_pc;
u2 end_pc;
u2 handler_pc;
u2 catch_type;
} exception_table[exception_table_length];
u2 attributes_count;
attribute_info attributes[attributes_count];
}
Code
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| pack-priv static final CodeException[] | EMPTY_CODE_EXCEPTION_ARRAY
Empty array. |
| private int | endPc
Active. |
| private int | handlerPc
Starting address of exception handler, i.e., an offset from start of code. |
| private int | startPc
Range in the code the exception handler. |
| Access | Constructor and Description |
|---|---|
| public | CodeException(final CodeException
Source for copying. c)
Deprecated
as a consequence of
Constructs a new instance from another instance.
CodeException being deprecated.
|
| pack-priv | |
| public | CodeException(final int
Range in the code the exception handler is active, startPc is inclusive while startPc, final int is exclusive endPc, final int Starting address of exception handler, i.e., an offset from start of code. handlerPc, final int If zero the handler catches any exception, otherwise it points to the exception class which is to be
caught. catchType)Constructs a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(final Visitor
Visitor object v)Implements org. |
| public CodeException | Returns: deep copy of this object
Deprecated
as a consequence of
CodeException being deprecated.
|
| public void | dump(final DataOutputStream
Output file stream file)Dumps code exception to file stream in binary format. |
| public int | Returns: 0, if the handler catches any exception, otherwise it points to the exception class which is to be caught.
|
| public int | |
| public int | |
| public int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | Returns: String representation.Overrides java. |
| public String | |
| public String | Returns: String representation.constant pool source. cp, final boolean Output more if true. verbose)
|
| catchType | back to summary |
|---|---|
| private int catchType | |
| EMPTY_CODE_EXCEPTION_ARRAY | back to summary |
|---|---|
| pack-priv static final CodeException[] EMPTY_CODE_EXCEPTION_ARRAY
Deprecated as a consequence of Empty array. | |
| endPc | back to summary |
|---|---|
| private int endPc Active. startPc is inclusive, endPc exclusive. | |
| handlerPc | back to summary |
|---|---|
| private int handlerPc Starting address of exception handler, i.e., an offset from start of code. | |
| startPc | back to summary |
|---|---|
| private int startPc Range in the code the exception handler. | |
| CodeException | back to summary |
|---|---|
| public CodeException(final CodeException c)
Deprecated as a consequence of Constructs a new instance from another instance.
| |
| CodeException | back to summary |
|---|---|
| pack-priv CodeException(final DataInput file) throws IOException Constructs a new instance from a DataInput.
| |
| CodeException | back to summary |
|---|---|
| public CodeException(final int startPc, final int endPc, final int handlerPc, final int catchType) Constructs a new instance.
| |
| accept | back to summary |
|---|---|
| public void accept(final Visitor v) 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 CodeException copy()
Deprecated as a consequence of
| |
| dump | back to summary |
|---|---|
| public void dump(final DataOutputStream file) throws IOException Dumps code exception to file stream in binary format.
| |
| getCatchType | back to summary |
|---|---|
public int getCatchType()
| |
| getEndPC | back to summary |
|---|---|
public int getEndPC()
| |
| getHandlerPC | back to summary |
|---|---|
public int getHandlerPC()
| |
| getStartPC | back to summary |
|---|---|
public int getStartPC()
| |
| setCatchType | back to summary |
|---|---|
public void setCatchType(final int catchType)
| |
| setEndPC | back to summary |
|---|---|
public void setEndPC(final int endPc)
| |
| setHandlerPC | back to summary |
|---|---|
public void setHandlerPC(final int handlerPc)
| |
| setStartPC | back to summary |
|---|---|
public void setStartPC(final int startPc)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toString | back to summary |
|---|---|
| public String toString(final ConstantPool cp) | |
| toString | back to summary |
|---|---|
public String toString(final ConstantPool cp, final boolean verbose)
| |