Package org.eclipse.xtext.util
Class OnChangeEvictingCache.CacheAdapter
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterImpl
-
- org.eclipse.emf.ecore.util.EContentAdapter
-
- org.eclipse.xtext.util.NonRecursiveEContentAdapter
-
- org.eclipse.xtext.util.OnChangeEvictingCache.CacheAdapter
-
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter,org.eclipse.emf.common.notify.Adapter.Internal
- Enclosing class:
- OnChangeEvictingCache
public static class OnChangeEvictingCache.CacheAdapter extends NonRecursiveEContentAdapter
-
-
Constructor Summary
Constructors Constructor Description CacheAdapter()CacheAdapter(int initialCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddCacheListener(OnChangeEvictingCache.Listener listener)protected voidcacheHit()protected voidcacheMiss()voidclearValues()<T> Tget(java.lang.Object name)protected org.eclipse.emf.ecore.resource.ResourcegetResource()voidignoreNotifications()booleanisAdapterForType(java.lang.Object type)booleanisIgnoreNotifications()protected booleanisSemanticStateChange(org.eclipse.emf.common.notify.Notification notification)voidlistenToNotifications()voidnotifyChanged(org.eclipse.emf.common.notify.Notification notification)voidremoveCacheListener(OnChangeEvictingCache.Listener listener)protected booleanresolve()voidset(java.lang.Object name, java.lang.Object value)voidsetIgnoreNotifications(boolean ignoreNotifications)Deprecated.useignoreNotifications()andlistenToNotifications()instead.protected voidsetResource(org.eclipse.emf.ecore.resource.Resource resource)-
Methods inherited from class org.eclipse.xtext.util.NonRecursiveEContentAdapter
useRecursion
-
-
-
-
Method Detail
-
set
public void set(java.lang.Object name, java.lang.Object value)
-
listenToNotifications
public void listenToNotifications()
- Since:
- 2.1
-
ignoreNotifications
public void ignoreNotifications()
- Since:
- 2.1
-
cacheMiss
protected void cacheMiss()
- Since:
- 2.1
-
cacheHit
protected void cacheHit()
- Since:
- 2.1
-
get
public <T> T get(java.lang.Object name)
-
addCacheListener
public void addCacheListener(OnChangeEvictingCache.Listener listener)
-
removeCacheListener
public void removeCacheListener(OnChangeEvictingCache.Listener listener)
-
notifyChanged
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
- Specified by:
notifyChangedin interfaceorg.eclipse.emf.common.notify.Adapter- Overrides:
notifyChangedin classorg.eclipse.emf.ecore.util.EContentAdapter
-
clearValues
public void clearValues()
-
isSemanticStateChange
protected boolean isSemanticStateChange(org.eclipse.emf.common.notify.Notification notification)
- Since:
- 2.23
-
isAdapterForType
public boolean isAdapterForType(java.lang.Object type)
- Specified by:
isAdapterForTypein interfaceorg.eclipse.emf.common.notify.Adapter- Overrides:
isAdapterForTypein classorg.eclipse.emf.common.notify.impl.AdapterImpl
-
setIgnoreNotifications
@Deprecated public void setIgnoreNotifications(boolean ignoreNotifications)
Deprecated.useignoreNotifications()andlistenToNotifications()instead.
-
isIgnoreNotifications
public boolean isIgnoreNotifications()
-
resolve
protected boolean resolve()
- Overrides:
resolvein classorg.eclipse.emf.ecore.util.EContentAdapter
-
getResource
protected org.eclipse.emf.ecore.resource.Resource getResource()
- Since:
- 2.1
-
setResource
protected void setResource(org.eclipse.emf.ecore.resource.Resource resource)
- Since:
- 2.1
-
-