Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.model
Interface ISourceRange


public interface ISourceRange

A source range defines an element's source coordinates


Method Summary
 int getEndLine()
          Returns the 1-based ending line of this element.
 int getIdLength()
          Returns the number of characters of the Id for this element.
 int getIdStartPos()
          Returns the Id starting position of this element.
 int getLength()
          Returns the number of characters of the source code for this element.
 int getStartLine()
          Returns the 1-based starting line of this element.
 int getStartPos()
          Returns the 0-based starting position of this element.
 

Method Detail

getStartPos

public int getStartPos()
Returns the 0-based starting position of this element.


getLength

public int getLength()
Returns the number of characters of the source code for this element.


getIdStartPos

public int getIdStartPos()
Returns the Id starting position of this element.


getIdLength

public int getIdLength()
Returns the number of characters of the Id for this element.


getStartLine

public int getStartLine()
Returns the 1-based starting line of this element.


getEndLine

public int getEndLine()
Returns the 1-based ending line of this element.


Eclipse CDT
Pre-release 3.0

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