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 * Description of a line number attribute as described in the JVM specifications. 18 * 19 * This interface may be implemented by clients. 20 * 21 * @since 2.0 22 */ 23 public interface ILineNumberAttribute extends IClassFileAttribute { 24 25 /** 26 * Answer back the line number table length as specified in 27 * the JVM specifications. 28 * 29 * @return the line number table length as specified in 30 * the JVM specifications 31 */ getLineNumberTableLength()32 int getLineNumberTableLength(); 33 34 /** 35 * Answer back the array of pairs (start pc, line number) as specified in the 36 * JVM specifications. Answer an empty array if none. 37 * 38 * @return the array of pairs (start pc, line number) as specified in the 39 * JVM specifications. Answer an empty array if none 40 */ getLineNumberTable()41 int[][] getLineNumberTable(); 42 43 } 44