|
Eclipse CDT Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |
boolean |
isDeclaration()
Is this name being used in the AST as the introduction of a declaration? |
boolean |
isDefinition()
Is this name being used in the AST as a reference rather than a declaration? |
boolean |
isReference()
Is this name being used in the AST as a reference rather than a declaration? |
IBinding |
resolveBinding()
Resolve the semantic object this name is referring to. |
IBinding[] |
resolvePrefix()
Return a list of bindings in the scope of the name that have the name as a prefix. |
void |
setBinding(IBinding binding)
Set the semantic object for this name to be the given binding |
char[] |
toCharArray()
Return a char array representation of the name. |
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode |
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent |
Field Detail |
public static final IASTName[] EMPTY_NAME_ARRAY
Method Detail |
public IBinding resolveBinding()
IBinding
bindingpublic IBinding getBinding()
IBinding
if it has been resolved, otherwise nullpublic void setBinding(IBinding binding)
binding
- public IBinding[] resolvePrefix()
IBinding []
bindings that start with this namepublic char[] toCharArray()
public boolean isDeclaration()
public boolean isReference()
public boolean isDefinition()
|
Eclipse CDT Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |