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
FieldsModifier and TypeFieldDescriptionstatic final String
Index slice predicate for all managerType
static final String
Index slice predicate for non selectionType
static final String
Index slice predicate for elements with qualified name with one partstatic 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 TypeMethodDescriptionGets all registered predicates with its names from extension point "com._1c.g5.v8.dt.core.indexSlicePredicate".getPredicate
(String name) 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 fromAndPredicate
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
Index slice predicate for elements with user data "script" == "intnl" or without data "script"- See Also:
-
SCRIPT_RU
Index slice predicate for elements with user data "script" == "ru" or without data "script"- See Also:
-
ONE_SEGMENT
Index slice predicate for elements with qualified name with one part- See Also:
-
NON_SELECTION_TYPE
Index slice predicate for non selectionType
- See Also:
-
SOME_SEGMENTS
Index slice predicate for elements with qualified name with more one part- See Also:
-
MANAGER_TYPE
Index slice predicate for all managerType
- See Also:
-
-
Method Details
-
getPredicate
Gets index slice predicate by name. See extension point "com._1c.g5.v8.dt.core.indexSlicePredicate" andIIndexSlice
- Parameters:
name
- name of the registered index slice predicate, can't benull
- 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 seeIIndexSlice
- 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 benull
- 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 fromAndPredicate
- Parameters:
predicates
- separating predicates, can't benull
- Returns:
- pair - the first is index slices predicates, the second is remaining predicate, never
null
-