blob: ca83d5cd2cd0e7e2cd925e7c9f9ced1b42517d7d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.debug.core.model;
import org.eclipse.core.runtime.CoreException;
/**
* A breakpoint that can be located at a specific line of source code.
*/
public interface ILineBreakpoint extends IBreakpoint {
/**
* Returns the line number in the original source that corresponds
* to the location of this breakpoint, or -1 if the attribute is not
* present.
*
* @return this breakpoint's line number, or -1 if unknown
* @exception CoreException if a <code>CoreException</code> is thrown
* while accessing the underlying <code>IMarker.LINE_NUMBER</code> marker attribute
*/
int getLineNumber() throws CoreException;
/**
* Returns starting source index in the original source that corresponds
* to the location of this breakpoint, or -1 if the attribute is not present.
*
* @return this breakpoint's char start value, or -1 if unknown
* @exception CoreException if a <code>CoreException</code> is thrown
* while accessing the underlying <code>IMarker.CHAR_START</code> marker attribute
*/
int getCharStart() throws CoreException;
/**
* Returns ending source index in the original source that corresponds
* to the location of this breakpoint, or -1 if the attribute is not present.
*
* @return this breakpoint's char end value, or -1 if unknown
* @exception CoreException if a <code>CoreException</code> is thrown
* while accessing the underlying <code>IMarker.CHAR_END</code> marker attribute
*/
int getCharEnd() throws CoreException;
}