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_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)Constructs a new instance from another instance. |
| 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 com. Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. |
| public CodeException | |
| public void | dump(final DataOutputStream
Output file stream file)Dumps code exception to file stream in binary format. |
| public int | getCatchType()
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. Returns a string representation of the object. |
| public String | |
| public String | toString(final ConstantPool
constant pool source. cp, final boolean Output more if true. verbose)Returns: String representation. |
| catchType | back to summary |
|---|---|
| private int catchType | |
| EMPTY_ARRAY | back to summary |
|---|---|
| pack-priv static final CodeException[] EMPTY_ARRAY 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) 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 com. 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()
| |
| 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.
Satisfying this method's contract implies a non- | |
| toString | back to summary |
|---|---|
| public String toString(final ConstantPool cp) | |
| toString | back to summary |
|---|---|
public String toString(final ConstantPool cp, final boolean verbose)
| |