|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IASTName
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. |
IASTImageLocation |
getImageLocation()
Returns the image location for this name or null if the information is not available. |
org.eclipse.cdt.core.dom.ILinkage |
getLinkage()
Determines the current linkage in which the name has to be resolved. |
int |
getRoleOfName(boolean allowResolution)
Get the role of this name. |
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, isPartOfTranslationUnitFile, setParent, setPropertyInParent |
Methods inherited from interface org.eclipse.cdt.core.dom.IName |
---|
getFileLocation, isDeclaration, isDefinition, isReference, toCharArray |
Field Detail |
---|
static final IASTName[] EMPTY_NAME_ARRAY
Method Detail |
---|
IBinding getBinding()
IBinding
if it has been resolved, otherwise nullvoid setBinding(IBinding binding)
binding
- IBinding resolveBinding()
IBinding
bindingint getRoleOfName(boolean allowResolution)
allowResolution
is set to false
, then IASTNameOwner.r_unclear
is returned.
allowResolution
- whether or not resolving the name is allowed.
IASTNameOwner.r_definition
, IASTNameOwner.r_declaration
,
IASTNameOwner.r_reference
, IASTNameOwner.r_unclear
.IASTCompletionContext getCompletionContext()
IASTCompletionContext
the context for completionorg.eclipse.cdt.core.dom.ILinkage getLinkage()
IASTImageLocation getImageLocation()
null
if the information is not available.
An image location can be computed when the name is either found directly in the code, is (part of) an argument to a macro expansion or is (part of) a macro definition found in the source code.
The image location is null
, when the name consists of multiple tokens (qualified names)
and the tokens are not found side by side in the code or if
the name is the result of a token-paste operation or the name is found in the definition of a
built-in macro.
|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |