All Packages Class Hierarchy This Package Previous Next Index
Class de.fub.bytecode.classfile.CodeException
java.lang.Object
|
+----de.fub.bytecode.classfile.CodeException
- public final class CodeException
- extends Object
- implements Cloneable, Constants
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.
- Version:
- $Id: CodeException.java,v 1.5 1999/07/09 15:54:27 dahm Exp $
- Author:
- M. Dahm
- See Also:
- Code
-
CodeException(CodeException)
- Initialize from another object.
-
CodeException(int, int, int, int)
-
-
accept(Visitor)
- Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
-
copy()
-
-
dump(DataOutputStream)
- Dump code exception to file stream in binary format.
-
getCatchType()
-
-
getEndPC()
-
-
getHandlerPC()
-
-
getStartPC()
-
-
setCatchType(int)
-
-
setEndPC(int)
-
-
setHandlerPC(int)
-
-
setStartPC(int)
-
-
toString()
-
-
toString(ConstantPool)
-
-
toString(ConstantPool, boolean)
-
CodeException
public CodeException(CodeException c)
- Initialize from another object.
CodeException
public CodeException(int start_pc,
int end_pc,
int handler_pc,
int catch_type)
- 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.
accept
public void accept(Visitor v)
- Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class. I.e., the hierarchy of methods,
fields, attributes, etc. spawns a tree of objects.
- Parameters:
- v - Visitor object
dump
public final void dump(DataOutputStream file) throws IOException
- Dump code exception to file stream in binary format.
- Parameters:
- file - Output file stream
getCatchType
public final int getCatchType()
- Returns:
- 0, if the handler catches any exception, otherwise it points to
the exception class which is to be caught.
getEndPC
public final int getEndPC()
- Returns:
- Exclusive end index of the region where the handler is active.
getHandlerPC
public final int getHandlerPC()
- Returns:
- Starting address of exception handler, relative to the code.
getStartPC
public final int getStartPC()
- Returns:
- Inclusive start index of the region where the handler is active.
setCatchType
public final void setCatchType(int catch_type)
setEndPC
public final void setEndPC(int end_pc)
- Parameters:
- end_pc - end of handled block
setHandlerPC
public final void setHandlerPC(int handler_pc)
- Parameters:
- handler_pc - where the actual code is
setStartPC
public final void setStartPC(int start_pc)
- Parameters:
- start_pc - start of handled block
toString
public final String toString()
- Returns:
- String representation.
- Overrides:
- toString in class Object
toString
public final String toString(ConstantPool cp,
boolean verbose)
- Returns:
- String representation.
toString
public final String toString(ConstantPool cp)
copy
public CodeException copy()
- Returns:
- deep copy of this object
All Packages Class Hierarchy This Package Previous Next Index