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 String
MANAGER_TYPE
Index slice predicate for all managerType
static String
NON_SELECTION_TYPE
Index slice predicate for non selectionType
static String
ONE_SEGMENT
Index slice predicate for elements with qualified name with one partstatic String
SCRIPT_INTNL
Index slice predicate for elements with user data "script" == "intnl" or without data "script"static String
SCRIPT_RU
Index slice predicate for elements with user data "script" == "ru" or without data "script"static String
SOME_SEGMENTS
Index slice predicate for elements with qualified name with more one part
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,ISliceFilter>
getAllPredicates()
Gets all registered predicates with its names from extension point "com._1c.g5.v8.dt.core.indexSlicePredicate".ISliceFilter
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 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 selectionType
- 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
-
MANAGER_TYPE
static final String MANAGER_TYPE
Index slice predicate for all managerType
- 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" 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
-
-