org.eclipse.xtext.util
Class IResourceScopeCache.NullImpl

java.lang.Object
  extended by org.eclipse.xtext.util.IResourceScopeCache.NullImpl
All Implemented Interfaces:
IResourceScopeCache
Enclosing interface:
IResourceScopeCache

public static class IResourceScopeCache.NullImpl
extends java.lang.Object
implements IResourceScopeCache


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.util.IResourceScopeCache
IResourceScopeCache.NullImpl
 
Field Summary
static IResourceScopeCache INSTANCE
           
 
Constructor Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final IResourceScopeCache INSTANCE
Constructor Detail

IResourceScopeCache.NullImpl

public IResourceScopeCache.NullImpl()
Method Detail

get

public <T> T get(java.lang.Object key,
                 org.eclipse.emf.ecore.resource.Resource res,
                 com.google.inject.Provider<T> provider)
Description copied from interface: IResourceScopeCache
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.

Specified by:
get in interface IResourceScopeCache
Returns:
the cached value or what the provider returns if no cached value exists

clear

public void clear(org.eclipse.emf.ecore.resource.Resource res)
Specified by:
clear in interface IResourceScopeCache