Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse JDT Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.jdt.core
Interface ISourceRange

public interface ISourceRange

A source range defines an element's source coordinates relative to its source buffer.

This interface is not intended to be implemented by clients.

Method Summary
`int` | `getLength()` Returns the number of characters of the source code for this element, relative to the source buffer in which this element is contained.
`int` | `getOffset()` Returns the 0-based index of the first character of the source code for this element, relative to the source buffer in which this element is contained.

Method Detail

### getLength

    public int getLength()

  Returns the number of characters of the source code for this element, relative to the source buffer in which this element is contained.

  Returns:
    the number of characters of the source code for this element, relative to the source buffer in which this element is contained

### getOffset

    public int getOffset()

  Returns the 0-based index of the first character of the source code for this element, relative to the source buffer in which this element is contained.

  Returns:
    the 0-based index of the first character of the source code for this element, relative to the source buffer in which this element is contained

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse JDT Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.