org.eclipse.xtext.util
Interface IResourceScopeCache
- All Known Implementing Classes:
- IResourceScopeCache.NullImpl, OnChangeEvictingCache
public interface IResourceScopeCache
- Author:
- Sven Efftinge - Initial contribution and API
Method Summary |
void |
clear(org.eclipse.emf.ecore.resource.Resource res)
|
|
get(java.lang.Object key,
org.eclipse.emf.ecore.resource.Resource res,
com.google.inject.Provider<T> provider)
A cache associates values to the given resource under the given key. |
get
<T> T get(java.lang.Object key,
org.eclipse.emf.ecore.resource.Resource res,
com.google.inject.Provider<T> provider)
- A cache associates values to the given resource under the given key.
The default implementation releases any values as soon as a semantic change occurs in any EObjects contained in the given resource.
- Returns:
- the cached value or what the provider returns if no cached value exists
clear
void clear(org.eclipse.emf.ecore.resource.Resource res)