Package org.eclipse.xtext.scoping
Interface IGlobalScopeProvider
-
- All Known Implementing Classes:
AbstractGlobalScopeProvider
,DefaultGlobalScopeProvider
,ImportUriGlobalScopeProvider
,ResourceSetGlobalScopeProvider
public interface IGlobalScopeProvider
Provides scopes for the world, that is things which are not local (i.e. within a resource). Common scope providers (local ones) use them to delegate lookup for any elements, which are not locally available.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IScope
getScope(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<IEObjectDescription> filter)
Returns a global scope for the given context.
-
-
-
Method Detail
-
getScope
IScope getScope(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference, com.google.common.base.Predicate<IEObjectDescription> filter)
Returns a global scope for the given context. The scope provides access to theEObjectDescription
visible from the givenResource
according to the definition of the global scope hierarchy (which is usually defined byIContainer.Manager
).- Parameters:
context
- the resource from which the global scope is looked at.reference
- the reference for which to construct a global scope.filter
- a filter used to filter down the elements contained in each scope. Scopes will only contain elements for which the filter returnedtrue
.- Returns:
IScope
representing the inner mostIScope
for the passed context and reference. Note for implementors: The result may not benull
. ReturnIScope.NULLSCOPE
instead.
-
-