org.eclipse.xtext.scoping.impl
Class SimpleScope
java.lang.Object
org.eclipse.xtext.scoping.impl.AbstractScope
org.eclipse.xtext.scoping.impl.SimpleScope
- All Implemented Interfaces:
- IScope
- Direct Known Subclasses:
- JvmFeatureScope, SingletonScope
public class SimpleScope
- extends AbstractScope
- Author:
- Sven Efftinge - Initial contribution and API, Sebastian Zarnekow
Field Summary |
protected java.util.Set<java.lang.Object> |
shadowingIndex
|
Methods inherited from class org.eclipse.xtext.scoping.impl.AbstractScope |
getAllElements, getElements, getElements, getLocalElementsByName, getParent, getParentElements, getSingleElement, getSingleElement, getSingleLocalElementByName, isIgnoreCase, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
shadowingIndex
protected java.util.Set<java.lang.Object> shadowingIndex
SimpleScope
public SimpleScope(IScope parent,
java.lang.Iterable<IEObjectDescription> descriptions,
boolean ignoreCase)
SimpleScope
public SimpleScope(IScope parent,
java.lang.Iterable<IEObjectDescription> descriptions)
SimpleScope
public SimpleScope(java.lang.Iterable<IEObjectDescription> descriptions,
boolean ignoreCase)
SimpleScope
public SimpleScope(java.lang.Iterable<IEObjectDescription> descriptions)
getAllLocalElements
protected java.lang.Iterable<IEObjectDescription> getAllLocalElements()
- Specified by:
getAllLocalElements
in class AbstractScope
getLocalElementsByEObject
protected java.lang.Iterable<IEObjectDescription> getLocalElementsByEObject(org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.common.util.URI uri)
- Overrides:
getLocalElementsByEObject
in class AbstractScope
getShadowingKey
protected java.lang.Object getShadowingKey(IEObjectDescription description)
- Returns:
- the key of the given description, which makes it shadowing others
isShadowed
protected boolean isShadowed(IEObjectDescription fromParent)
- Description copied from class:
AbstractScope
- Returns
true
if the given description input
from the parent scope is
shadowed by local elements.
- Overrides:
isShadowed
in class AbstractScope
- Returns:
true
if the given description input
from the parent scope is
shadowed by local elements.