org.apache.bcel.classfile
public final class CodeException extends Object implements Cloneable, Constants, Node, Serializable
See Also: Code
Constructor Summary | |
---|---|
CodeException(CodeException c)
Initialize from another object. | |
CodeException(int start_pc, int end_pc, int handler_pc, int catch_type) |
Method Summary | |
---|---|
void | accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class. |
CodeException | copy() |
void | dump(DataOutputStream file)
Dump code exception to file stream in binary format.
|
int | getCatchType() |
int | getEndPC() |
int | getHandlerPC() |
int | getStartPC() |
void | setCatchType(int catch_type) |
void | setEndPC(int end_pc) |
void | setHandlerPC(int handler_pc) |
void | setStartPC(int start_pc) |
String | toString() |
String | toString(ConstantPool cp, boolean verbose) |
String | toString(ConstantPool cp) |
Parameters: start_pc Range in the code the exception handler is active, start_pc is inclusive while end_pc is exclusive handler_pc Starting address of exception handler, i.e., an offset from start of code. catch_type If zero the handler catches any exception, otherwise it points to the exception class which is to be caught.
Parameters: v Visitor object
Returns: deep copy of this object
Parameters: file Output file stream
Throws: IOException
Returns: 0, if the handler catches any exception, otherwise it points to the exception class which is to be caught.
Returns: Exclusive end index of the region where the handler is active.
Returns: Starting address of exception handler, relative to the code.
Returns: Inclusive start index of the region where the handler is active.
Parameters: catch_type the type of exception that is caught
Parameters: end_pc end of handled block
Parameters: handler_pc where the actual code is
Parameters: start_pc start of handled block
Returns: String representation.
Returns: String representation.