Class ContextItemsScope<E extends DuallyNamedElement & Environmental>

java.lang.Object
com._1c.g5.modeling.xtext.scoping.LightAbstractScope
com._1c.g5.v8.dt.bsl.scoping.ContextItemsScope<E>
All Implemented Interfaces:
org.eclipse.xtext.scoping.IScope
Direct Known Subclasses:
ContextMethodsScope, ContextPropertiesScope

public abstract class ContextItemsScope<E extends DuallyNamedElement & Environmental> extends LightAbstractScope
Special scope for getting DuallyNamedElement and Environmental
See Also:
  • Constructor Details

    • ContextItemsScope

      public ContextItemsScope(org.eclipse.xtext.scoping.IScope parent, Environments envs)
      Constructor
      Parameters:
      parent - parent scope, can't be null
      envs - actual Environments, can't be null
  • Method Details

    • getLocalElementsByName

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

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

      protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
      Specified by:
      getAllLocalElements in class LightAbstractScope
    • 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.
    • collectAllItems

      protected abstract List<E> collectAllItems()
      Gets collection of item
      Returns:
      list of item