Class NonShadowedSelectableBasedScope

  • All Implemented Interfaces:
    ISlicedScope, org.eclipse.xtext.scoping.IScope

    public class NonShadowedSelectableBasedScope
    extends LightSelectableBasedScope
    SelectableBasedScope which does not shadow any object description
    • 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 (not null, use ISlicedScope.NULLSCOPE instead)
        selectable - the selectable instance (not null)
        filter - filter (may be null)
        type - the type of objects in scope, can't be null
        ignoreCase - ignore case or not
        slicePredicateService - IIndexSlicePredicateService for working with index slices, can't be null
    • 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)
        Creates NonShadowedSelectableBasedScope instance with given parameters
        Parameters:
        outer - outer scope (not null, use ISlicedScope.NULLSCOPE instead)
        selectable - the selectable instance (not null)
        type - the type of objects in scope, can't be null
        ignoreCase - ignore case or not
        slicePredicateService - IIndexSlicePredicateService for working with index slices, can't be null
        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)
        Creates NonShadowedSelectableBasedScope instance with given parameters
        Parameters:
        outer - outer scope (not null, use ISlicedScope.NULLSCOPE instead)
        selectable - the selectable instance (not null)
        filter - filter (may be null)
        type - the type of objects in scope, can't be null
        ignoreCase - ignore case or not
        slicePredicateService - IIndexSlicePredicateService for working with index slices, can't be null
        Returns:
        new NonShadowedSelectableBasedScope instance
      • isShadowed

        protected boolean isShadowed​(org.eclipse.xtext.resource.IEObjectDescription input)
        Description copied from class: LightAbstractScope
        Returns true if the given description input from the parent scope is shadowed by local elements.
        Overrides:
        isShadowed in class LightAbstractScope
        Returns:
        true if the given description input from the parent scope is shadowed by local elements.