Package 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:
SingletonScope
public class SimpleScope extends AbstractScope
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.xtext.scoping.impl.AbstractScope
AbstractScope.ParentIterable
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.Object>
shadowingIndex
-
Constructor Summary
Constructors Constructor Description SimpleScope(java.lang.Iterable<IEObjectDescription> descriptions)
SimpleScope(java.lang.Iterable<IEObjectDescription> descriptions, boolean ignoreCase)
SimpleScope(IScope parent, java.lang.Iterable<IEObjectDescription> descriptions)
SimpleScope(IScope parent, java.lang.Iterable<IEObjectDescription> descriptions, boolean ignoreCase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Iterable<IEObjectDescription>
getAllLocalElements()
protected java.lang.Iterable<IEObjectDescription>
getLocalElementsByEObject(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.common.util.URI uri)
protected java.lang.Object
getShadowingKey(IEObjectDescription description)
protected boolean
isShadowed(IEObjectDescription fromParent)
Returnstrue
if the given descriptioninput
from the parent scope is shadowed by local elements.-
Methods inherited from class org.eclipse.xtext.scoping.impl.AbstractScope
getAllElements, getElements, getElements, getLocalElementsByName, getParent, getParentElements, getSingleElement, getSingleElement, getSingleLocalElementByName, isIgnoreCase, toString
-
-
-
-
Constructor Detail
-
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)
-
-
Method Detail
-
getAllLocalElements
protected java.lang.Iterable<IEObjectDescription> getAllLocalElements()
- Specified by:
getAllLocalElements
in classAbstractScope
-
getLocalElementsByEObject
protected java.lang.Iterable<IEObjectDescription> getLocalElementsByEObject(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.common.util.URI uri)
- Overrides:
getLocalElementsByEObject
in classAbstractScope
-
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
Returnstrue
if the given descriptioninput
from the parent scope is shadowed by local elements.- Overrides:
isShadowed
in classAbstractScope
- Returns:
true
if the given descriptioninput
from the parent scope is shadowed by local elements.
-
-