Package org.eclipse.xtext.resource
Class IResourceDescriptions.NullImpl
- java.lang.Object
-
- org.eclipse.xtext.resource.IResourceDescriptions.NullImpl
-
- All Implemented Interfaces:
IResourceDescriptions,ISelectable
- Enclosing interface:
- IResourceDescriptions
public static class IResourceDescriptions.NullImpl extends java.lang.Object 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 NullImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<IResourceDescription>getAllResourceDescriptions()java.lang.Iterable<IEObjectDescription>getExportedObjects()java.lang.Iterable<IEObjectDescription>getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName name, boolean ignoreCase)java.lang.Iterable<IEObjectDescription>getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)java.lang.Iterable<IEObjectDescription>getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)IResourceDescriptiongetResourceDescription(org.eclipse.emf.common.util.URI uri)Returns the resource descriptions for the given URI.booleanisEmpty()Clients may want to check the selectable to skip its processing in case it is empty.
-
-
-
Method Detail
-
getAllResourceDescriptions
public java.lang.Iterable<IResourceDescription> getAllResourceDescriptions()
- Specified by:
getAllResourceDescriptionsin interfaceIResourceDescriptions
-
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
-
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- Returns:
trueif the selectable does not provide any descriptions.
-
getExportedObjects
public java.lang.Iterable<IEObjectDescription> getExportedObjects()
- Specified by:
getExportedObjectsin interfaceISelectable- Returns:
- all exported elements. May not be
null.
-
getExportedObjects
public java.lang.Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName name, boolean ignoreCase)
- Specified by:
getExportedObjectsin interfaceISelectable- Returns:
- all elements which match the given qualified name and type. May not be
null.
-
getExportedObjectsByType
public java.lang.Iterable<IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
- Specified by:
getExportedObjectsByTypein interfaceISelectable- Returns:
- all elements which match the given type. May not be
null.
-
getExportedObjectsByObject
public java.lang.Iterable<IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
- Specified by:
getExportedObjectsByObjectin interfaceISelectable- Returns:
- all elements which match the given instance. May not be
null.
-
-