public class ImportScope extends AbstractScope
AbstractScope.ParentIterable
Constructor and Description |
---|
ImportScope(java.util.List<ImportNormalizer> namespaceResolvers,
IScope parent,
ISelectable importFrom,
org.eclipse.emf.ecore.EClass type,
boolean ignoreCase) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Iterable<IEObjectDescription> |
getAliasedElements(java.lang.Iterable<IEObjectDescription> candidates) |
java.lang.Iterable<IEObjectDescription> |
getAllElements()
Obtain all elements from the scope.
|
protected java.lang.Iterable<IEObjectDescription> |
getAllLocalElements() |
protected QualifiedName |
getIgnoreCaseAwareQualifiedName(IEObjectDescription from) |
protected ISelectable |
getImportFrom() |
protected java.lang.Iterable<IEObjectDescription> |
getLocalElementsByEObject(org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.common.util.URI uri) |
protected java.lang.Iterable<IEObjectDescription> |
getLocalElementsByName(QualifiedName name) |
protected IEObjectDescription |
getSingleLocalElementByName(QualifiedName name) |
protected java.util.List<ImportNormalizer> |
removeDuplicates(java.util.List<ImportNormalizer> namespaceResolvers) |
java.lang.String |
toString() |
getElements, getElements, getParent, getParentElements, getSingleElement, getSingleElement, isIgnoreCase, isShadowed
public ImportScope(java.util.List<ImportNormalizer> namespaceResolvers, IScope parent, ISelectable importFrom, org.eclipse.emf.ecore.EClass type, boolean ignoreCase)
protected java.util.List<ImportNormalizer> removeDuplicates(java.util.List<ImportNormalizer> namespaceResolvers)
public java.lang.String toString()
toString
in class AbstractScope
public java.lang.Iterable<IEObjectDescription> getAllElements()
IScope
UnsupportedOperationException
if the scope cannot be enumerated.getAllElements
in interface IScope
getAllElements
in class AbstractScope
null
.protected QualifiedName getIgnoreCaseAwareQualifiedName(IEObjectDescription from)
protected java.lang.Iterable<IEObjectDescription> getAllLocalElements()
getAllLocalElements
in class AbstractScope
protected java.lang.Iterable<IEObjectDescription> getLocalElementsByEObject(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.common.util.URI uri)
getLocalElementsByEObject
in class AbstractScope
protected java.lang.Iterable<IEObjectDescription> getAliasedElements(java.lang.Iterable<IEObjectDescription> candidates)
protected IEObjectDescription getSingleLocalElementByName(QualifiedName name)
getSingleLocalElementByName
in class AbstractScope
protected java.lang.Iterable<IEObjectDescription> getLocalElementsByName(QualifiedName name)
getLocalElementsByName
in class AbstractScope
protected ISelectable getImportFrom()