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