Class LightStateBasedContainer

  • All Implemented Interfaces:
    org.eclipse.xtext.resource.IContainer, org.eclipse.xtext.resource.IResourceDescription.Event.Listener, org.eclipse.xtext.resource.ISelectable
    Direct Known Subclasses:
    BslLightStateBasedContainer

    public class LightStateBasedContainer
    extends org.eclipse.xtext.resource.impl.ResourceDescriptionsBasedContainer
    Lightweight version of the ResourceDescriptionsBasedContainer
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.IContainer

        org.eclipse.xtext.resource.IContainer.Manager
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.eclipse.xtext.resource.containers.IContainerState state
      IContainerState for filtering exported objects from IResourceDescriptions
      • Fields inherited from interface org.eclipse.xtext.resource.IContainer

        NULL_CONTAINER
    • Constructor Summary

      Constructors 
      Constructor Description
      LightStateBasedContainer​(org.eclipse.xtext.resource.IResourceDescriptions descriptions, org.eclipse.xtext.resource.containers.IContainerState state)  
    • Field Detail

      • state

        protected final org.eclipse.xtext.resource.containers.IContainerState state
        IContainerState for filtering exported objects from IResourceDescriptions
    • Constructor Detail

      • LightStateBasedContainer

        public LightStateBasedContainer​(org.eclipse.xtext.resource.IResourceDescriptions descriptions,
                                        org.eclipse.xtext.resource.containers.IContainerState state)
    • Method Detail

      • filterByURI

        protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> filterByURI​(Iterable<org.eclipse.xtext.resource.IEObjectDescription> unfiltered)
        Overrides:
        filterByURI in class org.eclipse.xtext.resource.impl.ResourceDescriptionsBasedContainer
      • hasResourceDescription

        public boolean hasResourceDescription​(org.eclipse.emf.common.util.URI uri)
        Specified by:
        hasResourceDescription in interface org.eclipse.xtext.resource.IContainer
        Overrides:
        hasResourceDescription in class org.eclipse.xtext.resource.impl.ResourceDescriptionsBasedContainer
      • getResourceDescriptionCount

        public int getResourceDescriptionCount()
        Specified by:
        getResourceDescriptionCount in interface org.eclipse.xtext.resource.IContainer
        Overrides:
        getResourceDescriptionCount in class org.eclipse.xtext.resource.impl.ResourceDescriptionsBasedContainer
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.eclipse.xtext.resource.ISelectable
        Overrides:
        isEmpty in class org.eclipse.xtext.resource.impl.AbstractCompoundSelectable
      • getResourceDescription

        public org.eclipse.xtext.resource.IResourceDescription getResourceDescription​(org.eclipse.emf.common.util.URI uri)
        Specified by:
        getResourceDescription in interface org.eclipse.xtext.resource.IContainer
        Overrides:
        getResourceDescription in class org.eclipse.xtext.resource.impl.ResourceDescriptionsBasedContainer
      • getResourceDescriptions

        public Iterable<org.eclipse.xtext.resource.IResourceDescription> getResourceDescriptions()
        Specified by:
        getResourceDescriptions in interface org.eclipse.xtext.resource.IContainer
        Overrides:
        getResourceDescriptions in class org.eclipse.xtext.resource.impl.ResourceDescriptionsBasedContainer
      • doGetUriToDescription

        protected Map<org.eclipse.emf.common.util.URI,​org.eclipse.xtext.resource.IResourceDescription> doGetUriToDescription()
        Overrides:
        doGetUriToDescription in class org.eclipse.xtext.resource.impl.ResourceDescriptionsBasedContainer
      • getExportedObjects

        public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getExportedObjects()
        Specified by:
        getExportedObjects in interface org.eclipse.xtext.resource.ISelectable
        Overrides:
        getExportedObjects in class org.eclipse.xtext.resource.impl.AbstractCompoundSelectable
      • getExportedObjectsByType

        public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getExportedObjectsByType​(org.eclipse.emf.ecore.EClass type)
        Specified by:
        getExportedObjectsByType in interface org.eclipse.xtext.resource.ISelectable
        Overrides:
        getExportedObjectsByType in class org.eclipse.xtext.resource.impl.ResourceDescriptionsBasedContainer
      • getExportedObjectsByObject

        public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getExportedObjectsByObject​(org.eclipse.emf.ecore.EObject object)
        Specified by:
        getExportedObjectsByObject in interface org.eclipse.xtext.resource.ISelectable
        Overrides:
        getExportedObjectsByObject in class org.eclipse.xtext.resource.impl.AbstractContainer
      • getExportedObjects

        public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getExportedObjects​(org.eclipse.emf.ecore.EClass type,
                                                                                           org.eclipse.xtext.naming.QualifiedName qualifiedName,
                                                                                           boolean ignoreCase)
        Specified by:
        getExportedObjects in interface org.eclipse.xtext.resource.ISelectable
        Overrides:
        getExportedObjects in class org.eclipse.xtext.resource.impl.ResourceDescriptionsBasedContainer