Eclipse CDT
Pre-release 3.0

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

All Superinterfaces:
IASTNode, org.eclipse.cdt.core.dom.IName
All Known Subinterfaces:
ICPPASTConversionName, ICPPASTOperatorName, ICPPASTQualifiedName, ICPPASTTemplateId

public interface IASTName
extends IASTNode, org.eclipse.cdt.core.dom.IName

This class represents a name in the program that represents a semantic object in the program. The toString method produces a string representation of the name as appropriate for the language.


Field Summary
static IASTName[] EMPTY_NAME_ARRAY
          Constant sentinel.
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 IBinding getBinding()
          Get the semantic object attached to this name.
 IASTCompletionContext getCompletionContext()
          Return the completion context for this name.
 org.eclipse.cdt.core.dom.ILinkage getLinkage()
          Determines the current linkage in which the name has to be resolved.
 IBinding resolveBinding()
          Resolve the semantic object this name is referring to.
 void setBinding(IBinding binding)
          Set the semantic object for this name to be the given binding
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, contains, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent
 
Methods inherited from interface org.eclipse.cdt.core.dom.IName
getFileLocation, isDeclaration, isDefinition, isReference, toCharArray
 

Field Detail

EMPTY_NAME_ARRAY

public static final IASTName[] EMPTY_NAME_ARRAY
Constant sentinel.

Method Detail

getBinding

public IBinding getBinding()
Get the semantic object attached to this name. May be null if this name has not yet been semantically resolved (@see resolveBinding)

Returns:
IBinding if it has been resolved, otherwise null

setBinding

public void setBinding(IBinding binding)
Set the semantic object for this name to be the given binding

Parameters:
binding -

resolveBinding

public IBinding resolveBinding()
Resolve the semantic object this name is referring to.

Returns:
IBinding binding

getCompletionContext

public IASTCompletionContext getCompletionContext()
Return the completion context for this name.

Returns:
IASTCompletionContext the context for completion

getLinkage

public org.eclipse.cdt.core.dom.ILinkage getLinkage()
Determines the current linkage in which the name has to be resolved.


Eclipse CDT
Pre-release 3.0

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