public interface IScope
Modifier and Type | Interface and Description |
---|---|
static class |
IScope.ScopeLookupData |
Modifier and Type | Method and Description |
---|---|
IBinding[] |
find(java.lang.String name)
Deprecated.
|
IBinding[] |
find(java.lang.String name,
IASTTranslationUnit tu)
This is the general lookup entry point.
|
IBinding |
getBinding(IASTName name,
boolean resolve)
Returns the binding in this scope that the given name would resolve to.
|
IBinding |
getBinding(IASTName name,
boolean resolve,
org.eclipse.cdt.core.index.IIndexFileSet acceptLocalBindings)
Returns the binding in this scope that the given name would resolve to.
|
IBinding[] |
getBindings(IASTName name,
boolean resolve,
boolean prefixLookup)
Deprecated.
Use
getBindings(ScopeLookupData) instead |
IBinding[] |
getBindings(IASTName name,
boolean resolve,
boolean prefixLookup,
org.eclipse.cdt.core.index.IIndexFileSet acceptLocalBindings)
Deprecated.
Use
getBindings(ScopeLookupData) instead |
IBinding[] |
getBindings(IScope.ScopeLookupData lookup)
Returns the bindings in this scope that the given name or prefix could resolve to.
|
EScopeKind |
getKind()
Classifies the scope.
|
IScope |
getParent()
Returns the first enclosing non-template scope, or
null if this is the global scope. |
org.eclipse.cdt.core.dom.IName |
getScopeName()
Returns the IName for this scope, may be
null . |
EScopeKind getKind()
org.eclipse.cdt.core.dom.IName getScopeName()
null
.IScope getParent() throws DOMException
null
if this is the global scope.DOMException
IBinding[] find(java.lang.String name, IASTTranslationUnit tu)
name
- the name of the bindingstu
- the translation unit determining the context for the lookup@Deprecated IBinding[] find(java.lang.String name)
find(String, IASTTranslationUnit)
IBinding getBinding(IASTName name, boolean resolve)
null
if there is no matching binding in this scope, if the binding has not yet been cached in this scope,
or if resolve is false
and the appropriate binding has not yet been resolved.name
- the name of the bindingresolve
- whether or not to resolve the matching binding if it has not been so alreadynull
IBinding getBinding(IASTName name, boolean resolve, org.eclipse.cdt.core.index.IIndexFileSet acceptLocalBindings)
null
if there is no matching binding in this scope, if the binding has not yet been cached in this scope,
or if resolve is false
and the appropriate binding has not yet been resolved. Accepts file
local bindings from the index for the files in the given set, only.name
- the name of the bindingresolve
- whether or not to resolve the matching binding if it has not been so alreadyacceptLocalBindings
- a set of files for which to accept local bindingsnull
@Deprecated IBinding[] getBindings(IASTName name, boolean resolve, boolean prefixLookup)
getBindings(ScopeLookupData)
instead@Deprecated IBinding[] getBindings(IASTName name, boolean resolve, boolean prefixLookup, org.eclipse.cdt.core.index.IIndexFileSet acceptLocalBindings)
getBindings(ScopeLookupData)
insteadIBinding[] getBindings(IScope.ScopeLookupData lookup)
null
if there is no matching bindings in this scope, if the bindings have not yet been cached
in this scope, or if resolve is false
and the appropriate bindings have not yet been resolved.null
Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.