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
public class NonShadowedSelectableBasedScope extends LightSelectableBasedScope
SelectableBasedScopewhich 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 com._1c.g5.modeling.xtext.scoping.ISlicedScope
NULLSCOPE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNonShadowedSelectableBasedScope(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
All 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)CreatesNonShadowedSelectableBasedScopeinstance with given parametersstatic 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)CreatesNonShadowedSelectableBasedScopeinstance with given parametersprotected booleanisShadowed(org.eclipse.xtext.resource.IEObjectDescription input)Returnstrueif the given descriptioninputfrom 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 Detail
-
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.NULLSCOPEinstead)selectable- the selectable instance (notnull)filter- filter (may benull)type- the type of objects in scope, can't benullignoreCase- ignore case or notslicePredicateService-IIndexSlicePredicateServicefor working with index slices, can't benull
-
-
Method Detail
-
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)CreatesNonShadowedSelectableBasedScopeinstance with given parameters- Parameters:
outer- outer scope (notnull, useISlicedScope.NULLSCOPEinstead)selectable- the selectable instance (notnull)type- the type of objects in scope, can't benullignoreCase- ignore case or notslicePredicateService-IIndexSlicePredicateServicefor working with index slices, can't benull- Returns:
- new
NonShadowedSelectableBasedScopeinstance
-
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)CreatesNonShadowedSelectableBasedScopeinstance with given parameters- Parameters:
outer- outer scope (notnull, useISlicedScope.NULLSCOPEinstead)selectable- the selectable instance (notnull)filter- filter (may benull)type- the type of objects in scope, can't benullignoreCase- ignore case or notslicePredicateService-IIndexSlicePredicateServicefor working with index slices, can't benull- Returns:
- new
NonShadowedSelectableBasedScopeinstance
-
isShadowed
protected boolean isShadowed(org.eclipse.xtext.resource.IEObjectDescription input)
Description copied from class:LightAbstractScopeReturnstrueif the given descriptioninputfrom the parent scope is shadowed by local elements.- Overrides:
isShadowedin classLightAbstractScope- Returns:
trueif the given descriptioninputfrom the parent scope is shadowed by local elements.
-
-