Class NonShadowedSelectableBasedScope
java.lang.Object
com._1c.g5.modeling.xtext.scoping.LightAbstractScope
com._1c.g5.modeling.xtext.scoping.LightSelectableBasedScope
com._1c.g5.modeling.xtext.scoping.NonShadowedSelectableBasedScope
- All Implemented Interfaces:
ISlicedScope
,org.eclipse.xtext.scoping.IScope
SelectableBasedScope
which does not shadow any object description-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScope
LightAbstractScope.EObjectFilterPredicate, LightAbstractScope.ParentIterable
-
Field Summary
Fields inherited from interface org.eclipse.xtext.scoping.IScope
NULLSCOPE
Fields inherited from interface com._1c.g5.modeling.xtext.scoping.ISlicedScope
NULLSCOPE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
NonShadowedSelectableBasedScope
(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 Summary
Modifier and TypeMethodDescriptionstatic 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) CreatesNonShadowedSelectableBasedScope
instance with given parametersstatic 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) CreatesNonShadowedSelectableBasedScope
instance with given parametersprotected boolean
isShadowed
(org.eclipse.xtext.resource.IEObjectDescription input) Returnstrue
if the given descriptioninput
from the parent scope is shadowed by local elements.Methods inherited from class com._1c.g5.modeling.xtext.scoping.LightSelectableBasedScope
filterLocalElements, getAllElements, getAllElements, getAllLocalElements, getElements, getElements, getFilter, getLocalElementsByName, getSelectable, getSingleElement
Methods inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScope
getElements, getElements, getLocalElementsByEObject, getParent, getParentElements, getSingleElement, getSingleElement, getSingleLocalElementByName, isIgnoreCase, toString
-
Constructor Details
-
NonShadowedSelectableBasedScope
protected NonShadowedSelectableBasedScope(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 scope (notnull
, useISlicedScope.NULLSCOPE
instead)selectable
- the selectable instance (notnull
)filter
- filter (may benull
)type
- the type of objects in scope, can't benull
ignoreCase
- ignore case or notslicePredicateService
-IIndexSlicePredicateService
for working with index slices, can't benull
-
-
Method Details
-
createScope
public 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) CreatesNonShadowedSelectableBasedScope
instance with given parameters- Parameters:
outer
- outer scope (notnull
, useISlicedScope.NULLSCOPE
instead)selectable
- the selectable instance (notnull
)type
- the type of objects in scope, can't benull
ignoreCase
- ignore case or notslicePredicateService
-IIndexSlicePredicateService
for working with index slices, can't benull
- Returns:
- new
NonShadowedSelectableBasedScope
instance
-
createScope
public 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) CreatesNonShadowedSelectableBasedScope
instance with given parameters- Parameters:
outer
- outer scope (notnull
, useISlicedScope.NULLSCOPE
instead)selectable
- the selectable instance (notnull
)filter
- filter (may benull
)type
- the type of objects in scope, can't benull
ignoreCase
- ignore case or notslicePredicateService
-IIndexSlicePredicateService
for working with index slices, can't benull
- Returns:
- new
NonShadowedSelectableBasedScope
instance
-
isShadowed
protected boolean isShadowed(org.eclipse.xtext.resource.IEObjectDescription input) Description copied from class:LightAbstractScope
Returnstrue
if the given descriptioninput
from the parent scope is shadowed by local elements.- Overrides:
isShadowed
in classLightAbstractScope
- Returns:
true
if the given descriptioninput
from the parent scope is shadowed by local elements.
-