|
Eclipse CDT Pre-release 3.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.
Method Summary | |
---|---|
IBinding[] |
find(String name)
This is the general lookup entry point. |
IBinding |
getBinding(IASTName name,
boolean resolve)
Get 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)
Get the binding in this scope that the given name would resolve to. |
IBinding[] |
getBindings(IASTName name,
boolean resolve,
boolean prefixLookup)
Get the bindings in this scope that the given name or prefix could resolve to. |
IBinding[] |
getBindings(IASTName name,
boolean resolve,
boolean prefixLookup,
org.eclipse.cdt.core.index.IIndexFileSet acceptLocalBindings)
Get the bindings in this scope that the given name or prefix could resolve to. |
EScopeKind |
getKind()
Classifies the scope. |
IScope |
getParent()
The method returns the first enclosing non-template scope, or null if this
is the global scope. |
org.eclipse.cdt.core.dom.IName |
getScopeName()
Get the IName for this scope, may be null |
Method Detail |
---|
EScopeKind getKind()
org.eclipse.cdt.core.dom.IName getScopeName() throws DOMException
DOMException
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(String name) throws DOMException
name
-
DOMException
IBinding getBinding(IASTName name, boolean resolve) throws DOMException
name
- resolve
- :
whether or not to resolve the matching binding if it has not
been so already.
DOMException
IBinding getBinding(IASTName name, boolean resolve, org.eclipse.cdt.core.index.IIndexFileSet acceptLocalBindings) throws DOMException
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.
DOMException
IBinding[] getBindings(IASTName name, boolean resolve, boolean prefixLookup) throws DOMException
name
- resolve
- :
whether or not to resolve the matching bindings if they have not
been so already.prefixLookup
- whether the lookup is for a full name or a prefix
DOMException
IBinding[] getBindings(IASTName name, boolean resolve, boolean prefixLookup, org.eclipse.cdt.core.index.IIndexFileSet acceptLocalBindings) throws DOMException
name
- resolve
- :
whether or not to resolve the matching bindings if they have not
been so already.prefixLookup
- whether the lookup is for a full name or a prefixacceptLocalBindings
- a set of files for which to accept local bindings.
DOMException
|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |