org.eclipse.xtext.util
Class OnChangeEvictingCache.CacheAdapter

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.eclipse.emf.ecore.util.EContentAdapter
          extended by 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 org.eclipse.emf.ecore.util.EContentAdapter


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Field Summary
 
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
 
Constructor Summary
OnChangeEvictingCache.CacheAdapter()
           
 
Method Summary
 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()
           
 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. use ignoreNotifications() and listenToNotifications() instead.
protected  void setResource(org.eclipse.emf.ecore.resource.Resource resource)
           
 
Methods inherited from class org.eclipse.emf.ecore.util.EContentAdapter
addAdapter, basicSetTarget, basicUnsetTarget, handleContainment, removeAdapter, selfAdapt, setTarget, setTarget, setTarget, setTarget, unsetTarget, unsetTarget, unsetTarget, unsetTarget, unsetTarget
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnChangeEvictingCache.CacheAdapter

public OnChangeEvictingCache.CacheAdapter()
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 interface org.eclipse.emf.common.notify.Adapter
Overrides:
notifyChanged in class org.eclipse.emf.ecore.util.EContentAdapter

clearValues

public void clearValues()

isAdapterForType

public boolean isAdapterForType(java.lang.Object type)
Specified by:
isAdapterForType in interface org.eclipse.emf.common.notify.Adapter
Overrides:
isAdapterForType in class org.eclipse.emf.common.notify.impl.AdapterImpl

setIgnoreNotifications

@Deprecated
public void setIgnoreNotifications(boolean ignoreNotifications)
Deprecated. use ignoreNotifications() and listenToNotifications() instead.


isIgnoreNotifications

public boolean isIgnoreNotifications()

resolve

protected boolean resolve()
Overrides:
resolve in class org.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