|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBinding
Represents the semantics of a name found in the AST or the index.
Field Summary | |
---|---|
static IBinding[] |
EMPTY_BINDING_ARRAY
|
Method Summary | |
---|---|
org.eclipse.cdt.core.dom.ILinkage |
getLinkage()
Returns the linkage the binding belongs to. |
java.lang.String |
getName()
Returns the unqualified name of the binding as a string. |
char[] |
getNameCharArray()
Returns the unqualified name of the binding as an array of characters. |
IBinding |
getOwner()
Returns the binding that owns this binding, or null if there is no owner. |
IScope |
getScope()
Returns the parent scope for this binding. |
Field Detail |
---|
static final IBinding[] EMPTY_BINDING_ARRAY
Method Detail |
---|
java.lang.String getName()
char[] getNameCharArray()
org.eclipse.cdt.core.dom.ILinkage getLinkage() throws CoreException
CoreException
IBinding getOwner() throws DOMException
null
if there is no owner.
The owner is determined as follows:
ICPPUsingDeclaration
: the owner depends on where the declaration is found, within a
function or method, a class-type, a namespace or on global scope.
ICPPTemplateParameter
: the owner is the ICPPTemplateDefinition
.
for all other bindings the owner depends on where the binding can be defined (it could be
declared else where).
Possible owners are:
IFunction
: for parameters, local types, variables, enumerators, labels and using declarations;
ICPPClassType
: for class-, struct- and union-members, even if the composite type is anonymous;
also for enumerators and using declarations;
ICompositeType
: for struct- and union-members, even if the composite type is anonymous;
also for anonymous structs or unions found within another struct;
ICPPNamespace
: for global types, functions, variables, enumerators, namespaces and using declarations;
null
: for types, functions, variables, enumerators, namespaces and using declarations;
DOMException
IScope getScope() throws DOMException
DOMException
|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |