Eclipse CDT
Pre-release 3.0

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

All Known Subinterfaces:
IASTFileLocation, IASTMacroExpansion

public interface IASTNodeLocation

A NodeLocation represents the source location of a given node. Most often this is a file it may be other fancy things like macro expansions.


Method Summary
 IASTFileLocation asFileLocation()
          Return a file location that best maps into this location.
 int getNodeLength()
          This is the length of the node contained in this location.
 int getNodeOffset()
          This is the offset into the actual source location that this node starts at.
 

Method Detail

getNodeOffset

int getNodeOffset()
This is the offset into the actual source location that this node starts at.

Returns:

getNodeLength

int getNodeLength()
This is the length of the node contained in this location.

Returns:

asFileLocation

IASTFileLocation asFileLocation()
Return a file location that best maps into this location.

Returns:

Eclipse CDT
Pre-release 3.0

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