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)
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)
Get 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()
IScope getParent() throws DOMException
null
if this
is the global scope.
For scopes obtained from an index, null
is returned to indicate that the
scope is only enclosed by the global scope.
DOMException
IBinding[] find(java.lang.String name)
name
- IBinding getBinding(IASTName name, boolean resolve)
name
- resolve
- whether or not to resolve the matching binding if it has not
been so already.IBinding getBinding(IASTName name, boolean resolve, org.eclipse.cdt.core.index.IIndexFileSet acceptLocalBindings)
name
- resolve
- whether or not to resolve the matching binding if it has not
been so already.acceptLocalBindings
- a set of files for which to accept local bindings.@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)
Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.