Package org.eclipse.xtext.resource
Interface IContainer
-
- All Superinterfaces:
ISelectable
- All Known Implementing Classes:
AbstractContainer,DescriptionAddingContainer,FilterUriContainer,LiveShadowedChunkedContainer,ResourceDescriptionsBasedContainer,StateBasedContainer
public interface IContainer extends ISelectable
Acontainerdescribes resources that should be treated as visible on the same level during the scoping stage. This depends on language implementations in a way that a container that was obtained for a given resource may contain other resources that would create other containers with distinct contents. A container may be optimized by means of theISelectable-contract.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIContainer.Manager
-
Field Summary
Fields Modifier and Type Field Description static IContainerNULL_CONTAINERa no-op implementation
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IResourceDescriptiongetResourceDescription(org.eclipse.emf.common.util.URI uri)intgetResourceDescriptionCount()java.lang.Iterable<IResourceDescription>getResourceDescriptions()booleanhasResourceDescription(org.eclipse.emf.common.util.URI uri)-
Methods inherited from interface org.eclipse.xtext.resource.ISelectable
getExportedObjects, getExportedObjects, getExportedObjectsByObject, getExportedObjectsByType, isEmpty
-
-
-
-
Field Detail
-
NULL_CONTAINER
static final IContainer NULL_CONTAINER
a no-op implementation
-
-
Method Detail
-
getResourceDescriptions
java.lang.Iterable<IResourceDescription> getResourceDescriptions()
- Returns:
- the
IResourceDescriptioncontained in this container. The result is nevernull. The result may be a cached view on the actual content of the underlying resources.
-
getResourceDescriptionCount
int getResourceDescriptionCount()
- Returns:
- the total number of resource descriptions returned by
getResourceDescriptions()
-
hasResourceDescription
boolean hasResourceDescription(org.eclipse.emf.common.util.URI uri)
- Returns:
trueif the container can provide aresource description with the given uri.
-
getResourceDescription
IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
- Returns:
- the
IResourceDescriptionfor the given URI, or null is this container does not contain such anIResourceDescription. The result may be a cached view on the actual content of the underlying resource.
-
-