Eclipse CDT
Pre-release 3.0

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

All Superinterfaces:
IASTFileLocation, IASTNodeLocation

public interface IASTImageLocation
extends IASTFileLocation

EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the CDT team.

Since:
5.0 An image location explains how a name made it into the translation unit.

Field Summary
static int ARGUMENT_TO_MACRO_EXPANSION
          The image is part of an argument of an explicit macro expansion.
static int MACRO_DEFINITION
          The image is part of a macro definition and was introduced by some macro expansion.
static int REGULAR_CODE
          The image is part of the code that has not been modified by the preprocessor.
 
Method Summary
 int getLocationKind()
          Returns the kind of image-location, one of REGULAR_CODE, MACRO_DEFINITION or ARGUMENT_TO_MACRO_EXPANSION.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTFileLocation
getEndingLineNumber, getFileName, getNodeLength, getNodeOffset, getStartingLineNumber
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNodeLocation
asFileLocation
 

Field Detail

REGULAR_CODE

static final int REGULAR_CODE
The image is part of the code that has not been modified by the preprocessor.

See Also:
Constant Field Values

MACRO_DEFINITION

static final int MACRO_DEFINITION
The image is part of a macro definition and was introduced by some macro expansion.

See Also:
Constant Field Values

ARGUMENT_TO_MACRO_EXPANSION

static final int ARGUMENT_TO_MACRO_EXPANSION
The image is part of an argument of an explicit macro expansion.

See Also:
Constant Field Values
Method Detail

getLocationKind

int getLocationKind()
Returns the kind of image-location, one of REGULAR_CODE, MACRO_DEFINITION or ARGUMENT_TO_MACRO_EXPANSION.


Eclipse CDT
Pre-release 3.0

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