Class LightAbstractScope

    • Constructor Detail

      • LightAbstractScope

        protected LightAbstractScope​(org.eclipse.xtext.scoping.IScope parent,
                                     boolean ignoreCase)
        Creates a new scope with a given parent.
        Parameters:
        parent - the parent scope. May not be null. Use NULLSCOPE instead.
        ignoreCase - whether name lookup and shadowing should be case insensitive or not.
    • Method Detail

      • getAllElements

        public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllElements()
        Specified by:
        getAllElements in interface org.eclipse.xtext.scoping.IScope
      • getElements

        public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements​(org.eclipse.emf.ecore.EObject object)
        Specified by:
        getElements in interface org.eclipse.xtext.scoping.IScope
      • getElements

        public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements​(org.eclipse.xtext.naming.QualifiedName name)
        Specified by:
        getElements in interface org.eclipse.xtext.scoping.IScope
      • getParent

        public org.eclipse.xtext.scoping.IScope getParent()
      • getSingleElement

        public org.eclipse.xtext.resource.IEObjectDescription getSingleElement​(org.eclipse.emf.ecore.EObject object)
        Specified by:
        getSingleElement in interface org.eclipse.xtext.scoping.IScope
      • getSingleElement

        public org.eclipse.xtext.resource.IEObjectDescription getSingleElement​(org.eclipse.xtext.naming.QualifiedName name)
        Specified by:
        getSingleElement in interface org.eclipse.xtext.scoping.IScope
      • isIgnoreCase

        public boolean isIgnoreCase()
      • getAllLocalElements

        protected abstract Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
      • getLocalElementsByEObject

        protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByEObject​(org.eclipse.emf.ecore.EObject object,
                                                                                                     org.eclipse.emf.common.util.URI uri)
      • getLocalElementsByName

        protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName​(org.eclipse.xtext.naming.QualifiedName name)
      • getParentElements

        protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getParentElements​(com.google.inject.Provider<Iterable<org.eclipse.xtext.resource.IEObjectDescription>> provider)
      • getSingleLocalElementByName

        protected org.eclipse.xtext.resource.IEObjectDescription getSingleLocalElementByName​(org.eclipse.xtext.naming.QualifiedName name)
      • isShadowed

        protected boolean isShadowed​(org.eclipse.xtext.resource.IEObjectDescription input)
        Returns true if the given description input from the parent scope is shadowed by local elements.
        Returns:
        true if the given description input from the parent scope is shadowed by local elements.