Package org.eclipse.xtext.scoping.impl
Interface IDelegatingScopeProvider
-
- All Superinterfaces:
IScopeProvider
- All Known Implementing Classes:
AbstractDeclarativeScopeProvider
,DelegatingScopeProvider
public interface IDelegatingScopeProvider extends IScopeProvider
A delegating scope provider marks an implementation, that handles only a couple of cases but will use anotherIScopeProvider
to compute its parent scope or that takes care of other cases. It is used to provide (recursive) access to the implementation, that will finally delegate to the global scope. This is necessary to allow wrapping of global scopes to keep track of imported names.- Since:
- 2.1
- See Also:
AbstractGlobalScopeDelegatingScopeProvider
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IScopeProvider
getDelegate()
Provides access to the delegate.default void
setWrapper(IScopeWrapper wrapper)
Set the wrapper this delegating scope provider.static void
setWrapper(IScopeProvider scopeProvider, IScopeWrapper wrapper)
Set the given wrapper on the givenIScopeProvider
if the scope provider is either a delegating scope provider or anAbstractGlobalScopeDelegatingScopeProvider
.-
Methods inherited from interface org.eclipse.xtext.scoping.IScopeProvider
getScope
-
-
-
-
Method Detail
-
getDelegate
IScopeProvider getDelegate()
Provides access to the delegate.- Returns:
- the delegate. May not be
null
.
-
setWrapper
default void setWrapper(IScopeWrapper wrapper)
Set the wrapper this delegating scope provider. This encapsulates the traversal of the delegate and allows clients to set the wrapper on multiple delegates if necessary. The wrapper may benull
- Since:
- 2.14
-
setWrapper
static void setWrapper(IScopeProvider scopeProvider, IScopeWrapper wrapper)
Set the given wrapper on the givenIScopeProvider
if the scope provider is either a delegating scope provider or anAbstractGlobalScopeDelegatingScopeProvider
. The wrapper may benull
- Since:
- 2.14
-
-