Package org.eclipse.xtext.scoping.impl
Class MultimapBasedSelectable
- java.lang.Object
-
- org.eclipse.xtext.scoping.impl.MultimapBasedSelectable
-
- All Implemented Interfaces:
ISelectable
public class MultimapBasedSelectable extends java.lang.Object implements ISelectable
-
-
Constructor Summary
Constructors Constructor Description MultimapBasedSelectable(java.lang.Iterable<IEObjectDescription> allDescriptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
boolean
isEmpty()
Clients may want to check the selectable to skip its processing in case it is empty.void
setExportedObjects(java.lang.Iterable<IEObjectDescription> allDescriptions)
-
-
-
Constructor Detail
-
MultimapBasedSelectable
public MultimapBasedSelectable(java.lang.Iterable<IEObjectDescription> allDescriptions)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Description copied from interface:ISelectable
Clients 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 returnfalse
if it is too expensive to compute the actual result.- Specified by:
isEmpty
in interfaceISelectable
- Returns:
true
if the selectable does not provide any descriptions.
-
getExportedObjectsByType
public java.lang.Iterable<IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
- Specified by:
getExportedObjectsByType
in 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:
getExportedObjectsByObject
in interfaceISelectable
- Returns:
- all elements which match the given instance. May not be
null
.
-
getExportedObjects
public java.lang.Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName name, boolean ignoreCase)
- Specified by:
getExportedObjects
in interfaceISelectable
- Returns:
- all elements which match the given qualified name and type. May not be
null
.
-
getExportedObjects
public java.lang.Iterable<IEObjectDescription> getExportedObjects()
- Specified by:
getExportedObjects
in interfaceISelectable
- Returns:
- all exported elements. May not be
null
.
-
setExportedObjects
public void setExportedObjects(java.lang.Iterable<IEObjectDescription> allDescriptions)
-
-