|
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. |
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 |
---|
static final IASTName[] EMPTY_NAME_ARRAY
Method Detail |
---|
IBinding resolveBinding()
IBinding
bindingIBinding getBinding()
IBinding
if it has been resolved, otherwise nullvoid setBinding(IBinding binding)
binding
- IBinding[] resolvePrefix()
IBinding []
bindings that start with this namechar[] toCharArray()
boolean isDeclaration()
boolean isReference()
boolean isDefinition()
|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |