Interface ISlicedResourceDescriptions


  • public interface ISlicedResourceDescriptions
    Special interface for expanding IResourceDescriptions for working with index slices. See IIndexSlicePredicateService
    • Method Detail

      • getExportedObjects

        Iterable<org.eclipse.xtext.resource.IEObjectDescription> getExportedObjects​(org.eclipse.emf.ecore.EClass type,
                                                                                    org.eclipse.xtext.naming.QualifiedName name,
                                                                                    boolean ignoreCase,
                                                                                    Collection<ISliceFilter> slices)
        Gets all elements which match the given qualified name and type
        Parameters:
        type - needed element EClass, can't be null
        name - needed element qualified name, can't be null
        ignoreCase - true if letter's register does not matter for matching, false otherwise
        slices - list of predicates corresponding to the index slices, can't be null
        Returns:
        all elements which match the given qualified name and type. May not be null.
      • getExportedObjectsByType

        Iterable<org.eclipse.xtext.resource.IEObjectDescription> getExportedObjectsByType​(org.eclipse.emf.ecore.EClass type,
                                                                                          Collection<ISliceFilter> slices)
        Gets all elements which match the given type for concrete index slices
        Parameters:
        type - EClass of selectable items, can't be null
        slices - list of predicates corresponding to the index slices, can't be null
        Returns:
        all elements which match the given type. May not be null.