Top Description Fields Constructors Methods
org.aspectj.apache.bcel.classfile

public final Class CodeException

extends Object
implements Cloneable, Constants, Node, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.aspectj.apache.bcel.classfile.Node, org.aspectj.apache.bcel.Constants, java.lang.Cloneable
Imports
java.io.DataInputStream, .DataOutputStream, .IOException, .Serializable, org.aspectj.apache.bcel.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.
Author
M. Dahm
Version
$Id: CodeException.java,v 1.3 2008/05/28 23:53:02 aclement Exp $
See Also
Code

Field Summary

Modifier and TypeField and Description
private int
private int
private int
private int

Constructor Summary

AccessConstructor and Description
public
pack-priv
public
CodeException(int start_pc, int end_pc, int handler_pc, int catch_type)

Method Summary

Modifier and TypeMethod and Description
public void
public CodeException

Returns:

deep copy of this object
copy
()

public final void
public final int

Returns:

0, if the handler catches any exception, otherwise it points to the exception class which is to be caught.
getCatchType
()

public final int

Returns:

Exclusive end index of the region where the handler is active.
getEndPC
()

public final int

Returns:

Starting address of exception handler, relative to the code.
getHandlerPC
()

public final int

Returns:

Inclusive start index of the region where the handler is active.
getStartPC
()

public final void
setCatchType(int catch_type)

public final void
setEndPC(int
end of handled block
end_pc
)

public final void
setHandlerPC(int
where the actual code is
handler_pc
)

public final void
setStartPC(int
start of handled block
start_pc
)

public final String

Returns:

String representation.
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public final String

Returns:

String representation.
toString
(ConstantPool cp, boolean verbose)

public final String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

catch_typeback to summary
private int catch_type
end_pcback to summary
private int end_pc
handler_pcback to summary
private int handler_pc
start_pcback to summary
private int start_pc

Constructor Detail

CodeExceptionback to summary
public CodeException(CodeException c)
CodeExceptionback to summary
pack-priv CodeException(DataInputStream file) throws IOException
CodeExceptionback to summary
public CodeException(int start_pc, int end_pc, int handler_pc, int catch_type)

Method Detail

acceptback to summary
public void accept(ClassVisitor v)

Implements org.aspectj.apache.bcel.classfile.Node.accept.

copyback to summary
public CodeException copy()
Returns:CodeException

deep copy of this object

dumpback to summary
public final void dump(DataOutputStream file) throws IOException
getCatchTypeback to summary
public final int getCatchType()
Returns:int

0, if the handler catches any exception, otherwise it points to the exception class which is to be caught.

getEndPCback to summary
public final int getEndPC()
Returns:int

Exclusive end index of the region where the handler is active.

getHandlerPCback to summary
public final int getHandlerPC()
Returns:int

Starting address of exception handler, relative to the code.

getStartPCback to summary
public final int getStartPC()
Returns:int

Inclusive start index of the region where the handler is active.

setCatchTypeback to summary
public final void setCatchType(int catch_type)
setEndPCback to summary
public final void setEndPC(int end_pc)
Parameters
end_pc:int

end of handled block

setHandlerPCback to summary
public final void setHandlerPC(int handler_pc)
Parameters
handler_pc:int

where the actual code is

setStartPCback to summary
public final void setStartPC(int start_pc)
Parameters
start_pc:int

start of handled block

toStringback to summary
public final String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

String representation.

toStringback to summary
public final String toString(ConstantPool cp, boolean verbose)
Returns:String

String representation.

toStringback to summary
public final String toString(ConstantPool cp)