01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.core.util;
11:
12: /**
13: * The class represents an entry in the exception table of a ICodeAttribute as
14: * specified in the JVM specifications.
15: *
16: * This interface may be implemented by clients.
17: *
18: * @since 2.0
19: */
20: public interface IExceptionTableEntry {
21:
22: /**
23: * Answer back the start pc of this entry.
24: *
25: * @return the start pc of this entry
26: */
27: int getStartPC();
28:
29: /**
30: * Answer back the end pc of this entry.
31: *
32: * @return the end pc of this entry
33: */
34: int getEndPC();
35:
36: /**
37: * Answer back the handler pc of this entry.
38: *
39: * @return the handler pc of this entry
40: */
41: int getHandlerPC();
42:
43: /**
44: * Answer back the catch type index in the constant pool.
45: *
46: * @return the catch type index in the constant pool
47: */
48: int getCatchTypeIndex();
49:
50: /**
51: * Answer back the catch type name, null if getCatchTypeIndex() returns 0.
52: * This is the case for any exception handler.
53: *
54: * @return the catch type name, null if getCatchTypeIndex() returns 0.
55: * This is the case for any exception handler
56: */
57: char[] getCatchType();
58: }
|