Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast
Interface IASTFileLocation

All Superinterfaces:
IASTNodeLocation
All Known Subinterfaces:
IASTImageLocation

public interface IASTFileLocation
extends IASTNodeLocation

Represents a node location that is directly in the source file.


Method Summary
 int getEndingLineNumber()
          Get the ending line number.
 java.lang.String getFileName()
          The name of the file.
 int getNodeLength()
          Returns the length of this location in terms of characters.
 int getNodeOffset()
          Returns the offset within the file where this location starts.
 int getStartingLineNumber()
          Get the starting line number.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNodeLocation
asFileLocation
 

Method Detail

getFileName

java.lang.String getFileName()
The name of the file.

Returns:
the name of the file

getNodeOffset

int getNodeOffset()
Returns the offset within the file where this location starts.

Specified by:
getNodeOffset in interface IASTNodeLocation

getNodeLength

int getNodeLength()
Returns the length of this location in terms of characters.

Specified by:
getNodeLength in interface IASTNodeLocation

getStartingLineNumber

int getStartingLineNumber()
Get the starting line number. Locations obtained via the index do not have line numbers and return 0.

Returns:
int representing line number or 0 if not applicable

getEndingLineNumber

int getEndingLineNumber()
Get the ending line number. Locations obtained via the index do not have line numbers and return 0.

Returns:
int representing line number or 0 if not applicable

Eclipse CDT
Pre-release 3.0

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