|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.bcel.classfile.CodeException
public final class CodeException
This class represents an entry in the exception table of the Code attribute and is used only there. It contains a range in which a particular exception handler is active.
Code
,
Serialized FormField Summary | |
---|---|
private int |
catch_type
|
private int |
end_pc
|
private int |
handler_pc
|
private int |
start_pc
|
Constructor Summary | |
---|---|
CodeException(CodeException c)
Initialize from another object. |
|
CodeException(java.io.DataInputStream file)
Construct object from file stream. |
|
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(java.io.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)
|
java.lang.String |
toString()
|
java.lang.String |
toString(ConstantPool cp)
|
java.lang.String |
toString(ConstantPool cp,
boolean verbose)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int start_pc
private int end_pc
private int handler_pc
private int catch_type
Constructor Detail |
---|
public CodeException(CodeException c)
CodeException(java.io.DataInputStream file) throws java.io.IOException
file
- Input stream
java.io.IOException
public CodeException(int start_pc, int end_pc, int handler_pc, int catch_type)
start_pc
- Range in the code the exception handler is active,
start_pc is inclusive whileend_pc
- is exclusivehandler_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.Method Detail |
---|
public void accept(Visitor v)
accept
in interface Node
v
- Visitor objectpublic final void dump(java.io.DataOutputStream file) throws java.io.IOException
file
- Output file stream
java.io.IOException
public final int getCatchType()
public final int getEndPC()
public final int getHandlerPC()
public final int getStartPC()
public final void setCatchType(int catch_type)
catch_type
- the type of exception that is caughtpublic final void setEndPC(int end_pc)
end_pc
- end of handled blockpublic final void setHandlerPC(int handler_pc)
handler_pc
- where the actual code ispublic final void setStartPC(int start_pc)
start_pc
- start of handled blockpublic final java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.String toString(ConstantPool cp, boolean verbose)
public final java.lang.String toString(ConstantPool cp)
public CodeException copy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |