KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > core > util > IExceptionTableEntry


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.core.util;
12
13 /**
14  * The class represents an entry in the exception table of a ICodeAttribute as
15  * specified in the JVM specifications.
16  *
17  * This interface may be implemented by clients.
18  *
19  * @since 2.0
20  */

21 public interface IExceptionTableEntry {
22
23     /**
24      * Answer back the start pc of this entry.
25      *
26      * @return the start pc of this entry
27      */

28     int getStartPC();
29
30     /**
31      * Answer back the end pc of this entry.
32      *
33      * @return the end pc of this entry
34      */

35     int getEndPC();
36
37     /**
38      * Answer back the handler pc of this entry.
39      *
40      * @return the handler pc of this entry
41      */

42     int getHandlerPC();
43
44     /**
45      * Answer back the catch type index in the constant pool.
46      *
47      * @return the catch type index in the constant pool
48      */

49     int getCatchTypeIndex();
50
51     /**
52      * Answer back the catch type name, null if getCatchTypeIndex() returns 0.
53      * This is the case for any exception handler.
54      *
55      * @return the catch type name, null if getCatchTypeIndex() returns 0.
56      * This is the case for any exception handler
57      */

58     char[] getCatchType();
59 }
60
Popular Tags