Class LightSelectableBasedScope
- java.lang.Object
- 
- com._1c.g5.modeling.xtext.scoping.LightAbstractScope
- 
- com._1c.g5.modeling.xtext.scoping.LightSelectableBasedScope
 
 
- 
- All Implemented Interfaces:
- ISlicedScope,- org.eclipse.xtext.scoping.IScope
 - Direct Known Subclasses:
- NonShadowedSelectableBasedScope
 
 public class LightSelectableBasedScope extends LightAbstractScope implements ISlicedScope The lightweight version of theSelectableBasedScope.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScopeLightAbstractScope.EObjectFilterPredicate, LightAbstractScope.ParentIterable
 
- 
 - 
Field Summary- 
Fields inherited from interface com._1c.g5.modeling.xtext.scoping.ISlicedScopeNULLSCOPE
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedLightSelectableBasedScope(org.eclipse.xtext.scoping.IScope outer, org.eclipse.xtext.resource.ISelectable selectable, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter, org.eclipse.emf.ecore.EClass type, boolean ignoreCase, IIndexSlicePredicateService slicePredicateService)Constructor
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.eclipse.xtext.scoping.IScopecreateScope(org.eclipse.xtext.scoping.IScope outer, org.eclipse.xtext.resource.ISelectable selectable, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter, org.eclipse.emf.ecore.EClass type, boolean ignoreCase, IIndexSlicePredicateService slicePredicateService)CreatesIScopefromouterandselectablestatic org.eclipse.xtext.scoping.IScopecreateScope(org.eclipse.xtext.scoping.IScope outer, org.eclipse.xtext.resource.ISelectable selectable, org.eclipse.emf.ecore.EClass type, boolean ignoreCase, IIndexSlicePredicateService slicePredicateService)Constructorprotected Iterable<org.eclipse.xtext.resource.IEObjectDescription>filterLocalElements(Iterable<org.eclipse.xtext.resource.IEObjectDescription> unfiltered)Filters all elements fromunfilteredwith {@link this#filter}Iterable<org.eclipse.xtext.resource.IEObjectDescription>getAllElements()Iterable<org.eclipse.xtext.resource.IEObjectDescription>getAllElements(Collection<ISliceFilter> slices)Obtain all elements from the scope.protected Iterable<org.eclipse.xtext.resource.IEObjectDescription>getAllLocalElements()Iterable<org.eclipse.xtext.resource.IEObjectDescription>getElements(org.eclipse.emf.ecore.EObject object, Collection<ISliceFilter> slices)Finds all descriptions that match the given instance.Iterable<org.eclipse.xtext.resource.IEObjectDescription>getElements(org.eclipse.xtext.naming.QualifiedName name, Collection<ISliceFilter> slices)Find all descriptions that match the given name.protected com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>getFilter()Gets actual filter scope.protected Iterable<org.eclipse.xtext.resource.IEObjectDescription>getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName name)protected org.eclipse.xtext.resource.ISelectablegetSelectable()Gets correspondingISelectablefor this scopeorg.eclipse.xtext.resource.IEObjectDescriptiongetSingleElement(org.eclipse.xtext.naming.QualifiedName name, Collection<ISliceFilter> slices)Finds the first description that matches the given name.- 
Methods inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScopegetElements, getElements, getLocalElementsByEObject, getParent, getParentElements, getSingleElement, getSingleElement, getSingleLocalElementByName, isIgnoreCase, isShadowed, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
LightSelectableBasedScopeprotected LightSelectableBasedScope(org.eclipse.xtext.scoping.IScope outer, org.eclipse.xtext.resource.ISelectable selectable, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter, org.eclipse.emf.ecore.EClass type, boolean ignoreCase, IIndexSlicePredicateService slicePredicateService)Constructor- Parameters:
- outer- outer- IScope, can't be- null
- selectable- actual- ISelectablefor constructing scope, can't be- null
- filter- special filter for scope, if- filter instanceof- AndPredicateindex slices will be separated from filter. Can be- null
- type-- EClassof containing elements in the scope, can't be- null
- ignoreCase- if- truethe resulting scope ia case-insensitive.
- slicePredicateService-- IIndexSlicePredicateServicefor working with index slices, can't be- null
 
 
- 
 - 
Method Detail- 
createScopepublic static org.eclipse.xtext.scoping.IScope createScope(org.eclipse.xtext.scoping.IScope outer, org.eclipse.xtext.resource.ISelectable selectable, org.eclipse.emf.ecore.EClass type, boolean ignoreCase, IIndexSlicePredicateService slicePredicateService)Constructor- Parameters:
- outer- outer- IScope, can't be- null
- selectable- actual- ISelectablefor constructing scope, can't be- null
- type-- EClassof containing elements in the scope, can't be- null
- ignoreCase- if- truethe resulting scope ia case-insensitive.
- slicePredicateService-- IIndexSlicePredicateServicefor working with index slices, can't be- null
 
 - 
createScopepublic static org.eclipse.xtext.scoping.IScope createScope(org.eclipse.xtext.scoping.IScope outer, org.eclipse.xtext.resource.ISelectable selectable, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter, org.eclipse.emf.ecore.EClass type, boolean ignoreCase, IIndexSlicePredicateService slicePredicateService)CreatesIScopefromouterandselectable- Parameters:
- outer- outer- IScope, can't be- null
- selectable- actual- ISelectablefor constructing scope, can't be- null
- filter- special filter for scope, if- filter instanceof- AndPredicateindex slices will be separated from filter. Can be- null
- type-- EClassof containing elements in the scope, can't be- null
- ignoreCase- if- truethe resulting scope ia case-insensitive.
- slicePredicateService-- IIndexSlicePredicateServicefor working with index slices, can't be- null
 
 - 
getAllElementspublic Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllElements() - Specified by:
- getAllElementsin interface- org.eclipse.xtext.scoping.IScope
- Overrides:
- getAllElementsin class- LightAbstractScope
 
 - 
getSingleElementpublic org.eclipse.xtext.resource.IEObjectDescription getSingleElement(org.eclipse.xtext.naming.QualifiedName name, Collection<ISliceFilter> slices)Description copied from interface:ISlicedScopeFinds the first description that matches the given name.- Specified by:
- getSingleElementin interface- ISlicedScope
- Parameters:
- name- the name of the to-be-found element. May not be- null.
- slices- list of predicates corresponding to the index slices, can't be- null
- Returns:
- the first element that matches the name. May benull.
 
 - 
getElementspublic Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.xtext.naming.QualifiedName name, Collection<ISliceFilter> slices) Description copied from interface:ISlicedScopeFind all descriptions that match the given name.- Specified by:
- getElementsin interface- ISlicedScope
- Parameters:
- name- the name of the to-be-found elements. May not be- null.
- slices- list of predicates corresponding to the index slices, can't be- null
- Returns:
- all elements that match the name. Nevernull.
 
 - 
getAllElementspublic Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllElements(Collection<ISliceFilter> slices) Description copied from interface:ISlicedScopeObtain all elements from the scope. Implementors a free to throw anUnsupportedOperationExceptionif the scope cannot be enumerated.- Specified by:
- getAllElementsin interface- ISlicedScope
- Parameters:
- slices- list of predicates corresponding to the index slices, can't be- null
- Returns:
- all elements of the scope. Never null.
 
 - 
getElementspublic Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.emf.ecore.EObject object, Collection<ISliceFilter> slices) Description copied from interface:ISlicedScopeFinds all descriptions that match the given instance.- Specified by:
- getElementsin interface- ISlicedScope
- Parameters:
- object- the instance whose descriptions should be obtained. May not be- null.
- slices- list of predicates corresponding to the index slices, can't be- null
- Returns:
- all elements that match the instance. Nevernull.
 
 - 
filterLocalElementsprotected Iterable<org.eclipse.xtext.resource.IEObjectDescription> filterLocalElements(Iterable<org.eclipse.xtext.resource.IEObjectDescription> unfiltered) Filters all elements fromunfilteredwith {@link this#filter}- Parameters:
- unfiltered- filtering elements, can't be- null
- Returns:
- filtered elements, never null
 
 - 
getAllLocalElementsprotected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements() - Specified by:
- getAllLocalElementsin class- LightAbstractScope
 
 - 
getFilterprotected com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> getFilter() Gets actual filter scope. There is no index slices in it- Returns:
- actual filter scope. There is no index slices in it. Can be nullif filter wasn't set
 
 - 
getLocalElementsByNameprotected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName name) - Overrides:
- getLocalElementsByNamein class- LightAbstractScope
 
 - 
getSelectableprotected org.eclipse.xtext.resource.ISelectable getSelectable() Gets correspondingISelectablefor this scope- Returns:
- corresponding ISelectablefor this scope, nevernull
 
 
- 
 
-