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;
11:
12: /**
13: * A source range defines an element's source coordinates relative to
14: * its source buffer.
15: * <p>
16: * This interface is not intended to be implemented by clients.
17: * </p>
18: */
19: public interface ISourceRange {
20:
21: /**
22: * Returns the number of characters of the source code for this element,
23: * relative to the source buffer in which this element is contained.
24: *
25: * @return the number of characters of the source code for this element,
26: * relative to the source buffer in which this element is contained
27: */
28: int getLength();
29:
30: /**
31: * Returns the 0-based index of the first character of the source code for this element,
32: * relative to the source buffer in which this element is contained.
33: *
34: * @return the 0-based index of the first character of the source code for this element,
35: * relative to the source buffer in which this element is contained
36: */
37: int getOffset();
38: }
|