Interface ISlicedScope
-
- All Known Implementing Classes:
CachedLightSimpleScope
,CompositeScope
,LightFilteringScope
,LightSelectableBasedScope
,NonShadowedSelectableBasedScope
,NullSlicedScope
,PlatformSimpleScope
public interface ISlicedScope
Special interface for expanding functionality ofIScope
for index slices. SeeIIndexSlice
-
-
Field Summary
Fields Modifier and Type Field Description static org.eclipse.xtext.scoping.IScope
NULLSCOPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterable<org.eclipse.xtext.resource.IEObjectDescription>
getAllElements(Collection<ISliceFilter> slices)
Obtain all elements from the scope.Iterable<org.eclipse.xtext.resource.IEObjectDescription>
getElements(org.eclipse.emf.ecore.EObject object, Collection<ISliceFilter> slices)
Finds all descriptions that match the given instance.Iterable<org.eclipse.xtext.resource.IEObjectDescription>
getElements(org.eclipse.xtext.naming.QualifiedName name, Collection<ISliceFilter> slices)
Find all descriptions that match the given name.org.eclipse.xtext.resource.IEObjectDescription
getSingleElement(org.eclipse.xtext.naming.QualifiedName name, Collection<ISliceFilter> slices)
Finds the first description that matches the given name.
-
-
-
Method Detail
-
getSingleElement
org.eclipse.xtext.resource.IEObjectDescription getSingleElement(org.eclipse.xtext.naming.QualifiedName name, Collection<ISliceFilter> slices)
Finds the first description that matches the given name.- Parameters:
name
- the name of the to-be-found element. May not benull
.slices
- list of predicates corresponding to the index slices, can't benull
- Returns:
- the first element that matches the
name
. May benull
.
-
getElements
Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.xtext.naming.QualifiedName name, Collection<ISliceFilter> slices)
Find all descriptions that match the given name.- Parameters:
name
- the name of the to-be-found elements. May not benull
.slices
- list of predicates corresponding to the index slices, can't benull
- Returns:
- all elements that match the
name
. Nevernull
.
-
getAllElements
Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllElements(Collection<ISliceFilter> slices)
Obtain all elements from the scope. Implementors a free to throw anUnsupportedOperationException
if the scope cannot be enumerated.- Parameters:
slices
- list of predicates corresponding to the index slices, can't benull
- Returns:
- all elements of the scope. Never
null
. - Throws:
UnsupportedOperationException
- if the scope cannot be enumerated.
-
getElements
Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.emf.ecore.EObject object, Collection<ISliceFilter> slices)
Finds all descriptions that match the given instance.- Parameters:
object
- the instance whose descriptions should be obtained. May not benull
.slices
- list of predicates corresponding to the index slices, can't benull
- Returns:
- all elements that match the
instance
. Nevernull
.
-
-