|
Eclipse CDT 7.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScope
Scopes can be used to look-up names. With the exception of template-scopes the scopes can be arranged in a hierarchy.
Nested Class Summary | |
---|---|
static class |
IScope.ScopeLookupData
|
Method Summary | |
---|---|
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 |
Method Detail |
---|
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)
instead
IBinding[] getBindings(IScope.ScopeLookupData lookup)
|
Eclipse CDT 7.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |