Package org.eclipse.xtext.util
Class IResourceScopeCache.NullImpl
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description static IResourceScopeCache
INSTANCE
-
Constructor Summary
Constructors Constructor Description NullImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
INSTANCE
public static final IResourceScopeCache INSTANCE
-
-
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 interfaceIResourceScopeCache
- 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 interfaceIResourceScopeCache
-
-