Package org.eclipse.xtext.scoping.impl
Class LoadOnDemandResourceDescriptions
- java.lang.Object
-
- org.eclipse.xtext.resource.impl.AbstractCompoundSelectable
-
- org.eclipse.xtext.scoping.impl.LoadOnDemandResourceDescriptions
-
- All Implemented Interfaces:
IResourceDescriptions,ISelectable
public class LoadOnDemandResourceDescriptions extends AbstractCompoundSelectable implements IResourceDescriptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.IResourceDescriptions
IResourceDescriptions.IContextAware, IResourceDescriptions.IResourceSetAware, IResourceDescriptions.NullImpl
-
-
Constructor Summary
Constructors Constructor Description LoadOnDemandResourceDescriptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<IResourceDescription>getAllResourceDescriptions()IResourceDescriptiongetResourceDescription(org.eclipse.emf.common.util.URI uri)Returns the resource descriptions for the given URI.protected java.lang.Iterable<? extends ISelectable>getSelectables()voidinitialize(IResourceDescriptions delegate, java.util.Collection<org.eclipse.emf.common.util.URI> validUris, org.eclipse.emf.ecore.resource.Resource context)booleanisEmpty()Clients may want to check the selectable to skip its processing in case it is empty.-
Methods inherited from class org.eclipse.xtext.resource.impl.AbstractCompoundSelectable
getExportedObjects, getExportedObjects, getExportedObjectsByObject, getExportedObjectsByType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.xtext.resource.ISelectable
getExportedObjects, getExportedObjects, getExportedObjectsByObject, getExportedObjectsByType
-
-
-
-
Method Detail
-
initialize
public void initialize(IResourceDescriptions delegate, java.util.Collection<org.eclipse.emf.common.util.URI> validUris, org.eclipse.emf.ecore.resource.Resource context)
-
getAllResourceDescriptions
public java.lang.Iterable<IResourceDescription> getAllResourceDescriptions()
- Specified by:
getAllResourceDescriptionsin interfaceIResourceDescriptions
-
isEmpty
public boolean isEmpty()
Description copied from interface:ISelectableClients may want to check the selectable to skip its processing in case it is empty. Implementations should be fast and not require expensive precalculation. Selectable may returnfalseif it is too expensive to compute the actual result.- Specified by:
isEmptyin interfaceISelectable- Overrides:
isEmptyin classAbstractCompoundSelectable- Returns:
trueif the selectable does not provide any descriptions.
-
getSelectables
protected java.lang.Iterable<? extends ISelectable> getSelectables()
- Specified by:
getSelectablesin classAbstractCompoundSelectable
-
getResourceDescription
public IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
Description copied from interface:IResourceDescriptionsReturns the resource descriptions for the given URI.- Specified by:
getResourceDescriptionin interfaceIResourceDescriptions
-
-