Class LightSimpleScope

java.lang.Object
com._1c.g5.modeling.xtext.scoping.LightAbstractScope
com._1c.g5.modeling.xtext.scoping.LightSimpleScope
All Implemented Interfaces:
org.eclipse.xtext.scoping.IScope
Direct Known Subclasses:
CachedLightSimpleScope

public class LightSimpleScope extends LightAbstractScope
Lightweight implementation of the SimpleScope.
  • Field Details

    • descriptions

      protected final Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions
  • Constructor Details

    • LightSimpleScope

      public LightSimpleScope(org.eclipse.xtext.scoping.IScope parent, Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions, boolean ignoreCase)
      Constructor
      Parameters:
      parent - parent scope, can't be null
      descriptions - IEObjectDescriptions for creating scope, can't be null
      ignoreCase - true if it's insensitive scope, false otherwise
    • LightSimpleScope

      public LightSimpleScope(org.eclipse.xtext.scoping.IScope parent, Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions)
      Constructor
      Parameters:
      parent - parent scope, can't be null
      descriptions - IEObjectDescriptions for creating scope, can't be null
    • LightSimpleScope

      public LightSimpleScope(Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions, boolean ignoreCase)
      Constructor
      Parameters:
      descriptions - IEObjectDescriptions for creating scope, can't be null
      ignoreCase - true if it's insensitive scope, false otherwise
    • LightSimpleScope

      public LightSimpleScope(Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions)
      Constructor
      Parameters:
      descriptions - IEObjectDescriptions for creating scope, can't be null
  • Method Details

    • getAllLocalElements

      protected final Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
      Specified by:
      getAllLocalElements in class LightAbstractScope
    • getLocalElementsByEObject

      protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByEObject(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.common.util.URI uri)
      Overrides:
      getLocalElementsByEObject in class LightAbstractScope
    • getShadowingKey

      protected Object getShadowingKey(org.eclipse.xtext.resource.IEObjectDescription description)
      Returns:
      the key of the given description, which makes it shadowing others
    • getLocalElementsByName

      protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName name)
      Overrides:
      getLocalElementsByName in class LightAbstractScope
    • getSingleLocalElementByName

      protected org.eclipse.xtext.resource.IEObjectDescription getSingleLocalElementByName(org.eclipse.xtext.naming.QualifiedName name)
      Overrides:
      getSingleLocalElementByName in class LightAbstractScope