org.eclipse.xtext.scoping.impl
Class ImportScope
java.lang.Object
org.eclipse.xtext.scoping.impl.AbstractScope
org.eclipse.xtext.scoping.impl.ImportScope
- All Implemented Interfaces:
- IScope
public class ImportScope
- extends AbstractScope
- Author:
- Sven Efftinge - Initial contribution and API, Sebastian Zarnekow
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ImportScope
public ImportScope(java.util.List<ImportNormalizer> namespaceResolvers,
IScope parent,
ISelectable importFrom,
org.eclipse.emf.ecore.EClass type,
boolean ignoreCase)
removeDuplicates
protected java.util.List<ImportNormalizer> removeDuplicates(java.util.List<ImportNormalizer> namespaceResolvers)
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractScope
getAllElements
public java.lang.Iterable<IEObjectDescription> getAllElements()
- Description copied from interface:
IScope
- Obtain all elements from the scope. Implementors a free to throw an
UnsupportedOperationException
if the scope cannot be enumerated.
- Specified by:
getAllElements
in interface IScope
- Overrides:
getAllElements
in class AbstractScope
- Returns:
- all elements of the scope. Never
null
.
getIgnoreCaseAwareQualifiedName
protected QualifiedName getIgnoreCaseAwareQualifiedName(IEObjectDescription from)
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
getAliasedElements
protected java.lang.Iterable<IEObjectDescription> getAliasedElements(java.lang.Iterable<IEObjectDescription> candidates)
getSingleLocalElementByName
protected IEObjectDescription getSingleLocalElementByName(QualifiedName name)
- Overrides:
getSingleLocalElementByName
in class AbstractScope
getLocalElementsByName
protected java.lang.Iterable<IEObjectDescription> getLocalElementsByName(QualifiedName name)
- Overrides:
getLocalElementsByName
in class AbstractScope
getImportFrom
protected ISelectable getImportFrom()