Class LightSimpleScope

  • All Implemented Interfaces:
    org.eclipse.xtext.scoping.IScope
    Direct Known Subclasses:
    CachedLightSimpleScope

    public class LightSimpleScope
    extends LightAbstractScope
    Lightweight implementation of the SimpleScope.
    • Field Detail

      • descriptions

        protected final Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions
    • Constructor Detail

      • LightSimpleScope

        public LightSimpleScope​(org.eclipse.xtext.scoping.IScope parent,
                                Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions,
                                boolean ignoreCase)
        Constructor
        Parameters:
        parent - parent scope, can't be null
        descriptions - IEObjectDescriptions for creating scope, can't be null
        ignoreCase - true if it's insensitive scope, false otherwise
      • LightSimpleScope

        public LightSimpleScope​(org.eclipse.xtext.scoping.IScope parent,
                                Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions)
        Constructor
        Parameters:
        parent - parent scope, can't be null
        descriptions - IEObjectDescriptions for creating scope, can't be null
      • LightSimpleScope

        public LightSimpleScope​(Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions,
                                boolean ignoreCase)
        Constructor
        Parameters:
        descriptions - IEObjectDescriptions for creating scope, can't be null
        ignoreCase - true if it's insensitive scope, false otherwise
      • LightSimpleScope

        public LightSimpleScope​(Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions)
        Constructor
        Parameters:
        descriptions - IEObjectDescriptions for creating scope, can't be null
    • Method Detail

      • getLocalElementsByEObject

        protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByEObject​(org.eclipse.emf.ecore.EObject object,
                                                                                                     org.eclipse.emf.common.util.URI uri)
        Overrides:
        getLocalElementsByEObject in class LightAbstractScope
      • getShadowingKey

        protected Object getShadowingKey​(org.eclipse.xtext.resource.IEObjectDescription description)
        Returns:
        the key of the given description, which makes it shadowing others
      • getSingleLocalElementByName

        protected org.eclipse.xtext.resource.IEObjectDescription getSingleLocalElementByName​(org.eclipse.xtext.naming.QualifiedName name)
        Overrides:
        getSingleLocalElementByName in class LightAbstractScope