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 void
addCacheListener(OnChangeEvictingCache.Listener listener)
protected void
cacheHit()
protected void
cacheMiss()
void
clearValues()
<T> T
get(java.lang.Object name)
protected org.eclipse.emf.ecore.resource.Resource
getResource()
void
ignoreNotifications()
boolean
isAdapterForType(java.lang.Object type)
boolean
isIgnoreNotifications()
protected boolean
isSemanticStateChange(org.eclipse.emf.common.notify.Notification notification)
void
listenToNotifications()
void
notifyChanged(org.eclipse.emf.common.notify.Notification notification)
void
removeCacheListener(OnChangeEvictingCache.Listener listener)
protected boolean
resolve()
void
set(java.lang.Object name, java.lang.Object value)
void
setIgnoreNotifications(boolean ignoreNotifications)
Deprecated.useignoreNotifications()
andlistenToNotifications()
instead.protected void
setResource(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:
notifyChanged
in interfaceorg.eclipse.emf.common.notify.Adapter
- Overrides:
notifyChanged
in 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:
isAdapterForType
in interfaceorg.eclipse.emf.common.notify.Adapter
- Overrides:
isAdapterForType
in 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:
resolve
in 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
-
-