Interface IIndexSlicePredicateService

  • All Known Implementing Classes:
    IndexSlicePredicateService

    public interface IIndexSlicePredicateService
    Special service for getting index slice predicates from extension point "com._1c.g5.v8.dt.core.indexSlicePredicate".
    • Field Detail

      • SCRIPT_INTNL

        static final String SCRIPT_INTNL
        Index slice predicate for elements with user data "script" == "intnl" or without data "script"
        See Also:
        Constant Field Values
      • SCRIPT_RU

        static final String SCRIPT_RU
        Index slice predicate for elements with user data "script" == "ru" or without data "script"
        See Also:
        Constant Field Values
      • ONE_SEGMENT

        static final String ONE_SEGMENT
        Index slice predicate for elements with qualified name with one part
        See Also:
        Constant Field Values
      • NON_SELECTION_TYPE

        static final String NON_SELECTION_TYPE
        Index slice predicate for non selection Type
        See Also:
        Constant Field Values
      • SOME_SEGMENTS

        static final String SOME_SEGMENTS
        Index slice predicate for elements with qualified name with more one part
        See Also:
        Constant Field Values
    • Method Detail

      • getPredicate

        ISliceFilter getPredicate​(String name)
        Gets index slice predicate by name. See extension point "com._1c.g5.v8.dt.core.indexSlicePredicate" and IIndexSlice
        Parameters:
        name - name of the registered index slice predicate, can't be null
        Returns:
        index slice predicate or null if predicate wasn't registered for this name.
      • getAllPredicates

        Map<String,​ISliceFilter> getAllPredicates()
        Gets all registered predicates with its names from extension point "com._1c.g5.v8.dt.core.indexSlicePredicate". Also see IIndexSlice
        Returns:
        map of registered predicates with its names from extension point "com._1c.g5.v8.dt.core.indexSlicePredicate", never null
      • separateSlices

        org.eclipse.xtext.util.Pair<Collection<ISliceFilter>,​com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>> separateSlices​(Collection<com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>> predicates)
        Separates slices predicates from colletion of the predicates
        Parameters:
        predicates - separating predicates, can't be null
        Returns:
        pair - the first is index slices predicates, the second is remaining predicate, never null
      • separateSlices

        org.eclipse.xtext.util.Pair<Collection<ISliceFilter>,​com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>> separateSlices​(AndPredicate<org.eclipse.xtext.resource.IEObjectDescription> predicates)
        Separates slices predicates from AndPredicate
        Parameters:
        predicates - separating predicates, can't be null
        Returns:
        pair - the first is index slices predicates, the second is remaining predicate, never null