Class IndexSlicePredicateService
java.lang.Object
com._1c.g5.modeling.xtext.scoping.IndexSlicePredicateService
- All Implemented Interfaces:
IIndexSlicePredicateService
Default implementation of
IIndexSlicePredicateService
. Reads registered index slices form extension point "com._1c.g5.modeling.xtext.indexSlicePredicate"-
Field Summary
Fields inherited from interface com._1c.g5.modeling.xtext.scoping.IIndexSlicePredicateService
MANAGER_TYPE, NON_SELECTION_TYPE, ONE_SEGMENT, SCRIPT_INTNL, SCRIPT_RU, SOME_SEGMENTS
-
Constructor Summary
Constructors -
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.protected Map<String,
ISliceFilter> Reads index slices predicates from extension point "com._1c.g5.modeling.xtext.indexSlicePredicate"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
-
Constructor Details
-
IndexSlicePredicateService
public IndexSlicePredicateService()
-
-
Method Details
-
getPredicate
Description copied from interface:IIndexSlicePredicateService
Gets index slice predicate by name. See extension point "com._1c.g5.v8.dt.core.indexSlicePredicate" andIIndexSlice
- Specified by:
getPredicate
in interfaceIIndexSlicePredicateService
- 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
Description copied from interface:IIndexSlicePredicateService
Gets all registered predicates with its names from extension point "com._1c.g5.v8.dt.core.indexSlicePredicate". Also seeIIndexSlice
- Specified by:
getAllPredicates
in interfaceIIndexSlicePredicateService
- Returns:
- map of registered predicates with its names from extension point "com._1c.g5.v8.dt.core.indexSlicePredicate", never
null
-
separateSlices
public 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) Description copied from interface:IIndexSlicePredicateService
Separates slices predicates from colletion of the predicates- Specified by:
separateSlices
in interfaceIIndexSlicePredicateService
- Parameters:
predicates
- separating predicates, can't benull
- Returns:
- pair - the first is index slices predicates, the second is remaining predicate, never
null
-
separateSlices
public 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) Description copied from interface:IIndexSlicePredicateService
Separates slices predicates fromAndPredicate
- Specified by:
separateSlices
in interfaceIIndexSlicePredicateService
- Parameters:
predicates
- separating predicates, can't benull
- Returns:
- pair - the first is index slices predicates, the second is remaining predicate, never
null
-
internalGetAllPredicates
Reads index slices predicates from extension point "com._1c.g5.modeling.xtext.indexSlicePredicate"- Returns:
- dictionary with key - name of the index slice predicate, value -
Predicate
of the index slice, nevernull
-