org.eclipse.xtext.util
Interface IResourceScopeCache

All Known Implementing Classes:
IResourceScopeCache.NullImpl, OnChangeEvictingCache

public interface IResourceScopeCache

Author:
Sven Efftinge - Initial contribution and API

Nested Class Summary
static class IResourceScopeCache.NullImpl
           
 
Method Summary
 void clear(org.eclipse.emf.ecore.resource.Resource res)
           
<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.
 

Method Detail

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)