Class CompositeScope

  • All Implemented Interfaces:
    org.eclipse.xtext.scoping.IScope

    public class CompositeScope
    extends org.eclipse.xtext.scoping.impl.AbstractScope
    Composes several scopes into one.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.xtext.scoping.impl.AbstractScope

        org.eclipse.xtext.scoping.impl.AbstractScope.ParentIterable
    • Field Summary

      • Fields inherited from interface org.eclipse.xtext.scoping.IScope

        NULLSCOPE
    • Constructor Summary

      Constructors 
      Constructor Description
      CompositeScope​(org.eclipse.xtext.scoping.IScope parent, boolean ignoreCase)
      Constructs a composite scope.
    • Constructor Detail

      • CompositeScope

        public CompositeScope​(org.eclipse.xtext.scoping.IScope parent,
                              boolean ignoreCase)
        Constructs a composite scope. The scope is initially empty. Scopes to compose may be added with getScopes().
        Parameters:
        parent -
        ignoreCase -
    • Method Detail

      • getScopes

        public List<org.eclipse.xtext.scoping.IScope> getScopes()
        Returns the list of scopes composed by this scope. The list is "live", i.e. any modifications to it will be reflected in the behavior of the composite scope.
        Returns:
        the list of scopes composed by this scope (never null)
      • getLocalElementsByName

        protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName​(org.eclipse.xtext.naming.QualifiedName name)
        Overrides:
        getLocalElementsByName in class org.eclipse.xtext.scoping.impl.AbstractScope
      • 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 org.eclipse.xtext.scoping.impl.AbstractScope
      • getAllLocalElements

        protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
        Specified by:
        getAllLocalElements in class org.eclipse.xtext.scoping.impl.AbstractScope