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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Index slice predicate for all manager Type
    static final String
    Index slice predicate for non selection Type
    static final String
    Index slice predicate for elements with qualified name with one part
    static final String
    Index slice predicate for elements with user data "script" == "intnl" or without data "script"
    static final String
    Index slice predicate for elements with user data "script" == "ru" or without data "script"
    static final String
    Index slice predicate for elements with qualified name with more one part
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets all registered predicates with its names from extension point "com._1c.g5.v8.dt.core.indexSlicePredicate".
    Gets index slice predicate by name.
    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
    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
  • Field Details

    • SCRIPT_INTNL

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

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

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

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

      static final String SOME_SEGMENTS
      Index slice predicate for elements with qualified name with more one part
      See Also:
    • MANAGER_TYPE

      static final String MANAGER_TYPE
      Index slice predicate for all manager Type
      See Also:
  • Method Details

    • 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