FileDocCategorySizeDatePackage
IExceptionHandlerTable.javaAPI DocAndroid 1.5 API3118Wed May 06 22:41:16 BST 2009com.vladium.jcd.cls.attribute

IExceptionHandlerTable

public interface IExceptionHandlerTable implements Cloneable, com.vladium.jcd.compiler.IClassFormatOutput
This table is a structure nested within the {@link CodeAttribute_info}. It is a table of {@link Exception_info} entries, each entry representing an exception handler range. The order of these entries is the order in which a JVM will check for a matching exception handler when the parent method throws an exception.
author
(C) 2001, Vlad Roubtsov

Fields Summary
Constructors Summary
Methods Summary
public intadd(Exception_info exception)
Adds a new Exception_info descriptor to this collection. No duplicate checks are made. It is the responsibility of the caller to ensure that all data referenced in 'exception' will eventually be consistent with method's bytecode and the class's constant pool.

param
exception new exception descriptor [may not be null]

public java.lang.Objectclone()

public Exception_infoget(int offset)
Returns {@link Exception_info} descriptor at a given offset.

param
offset exception offset [must be in [0, size()) range; input not checked]
return
Exception_info descriptor [never null]
throws
IndexOutOfBoundsException if 'offset' is outside of valid range

public longlength()
Returns the total length of this table when converted to .class format [including 2 count bytes]

public Exception_infoset(int offset, Exception_info exception)
Replaces the Exception_info descriptor at a given offset. No duplicate checks are made. No exception type compatibility checks are made. It is the responsibility of the caller to ensure that all data referenced in 'exception' will eventually be consistent with method's bytecode and the class's constant pool.

param
offset exception offset [must be in [0, size()) range; input not checked]
param
exception new exception descriptor [may not be null]
return
previous exception descriptor at this offset [never null]
throws
IndexOutOfBoundsException if 'offset' is outside of valid range

public intsize()
Returns the number of descriptors in this collection [can be 0].