Class BlockVariablesScope

java.lang.Object
com._1c.g5.modeling.xtext.scoping.LightAbstractScope
com._1c.g5.v8.dt.bsl.scoping.BlockVariablesScope
All Implemented Interfaces:
org.eclipse.xtext.scoping.IScope
Direct Known Subclasses:
MethodVariablesScope, ModuleVariablesScope

public abstract class BlockVariablesScope extends LightAbstractScope
Create scope for variable in Block for Bsl language
  • Constructor Details

    • BlockVariablesScope

      public BlockVariablesScope(org.eclipse.xtext.scoping.IScope parent, Block block, com.google.common.base.Predicate<DeclareStatement> filter)
      Initialize
      Parameters:
      parent - parent scope
      block - Block of Bsl language. Can't be null
      filter - filter by name
  • Method Details

    • 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.
    • findByName

      protected abstract Variable findByName(String name)
      Find Variable by name
      Parameters:
      name - name of the looking for variable
      Returns:
      found Variable or null
    • findExplicitVariable

      protected ExplicitVariable findExplicitVariable(String name)
      Find ExplicitVariable by name
      Parameters:
      name - name of the looking for variable
      Returns:
      found ExplicitVariable or null
    • prepareAllLocalElements

      protected abstract Iterable<org.eclipse.xtext.resource.IEObjectDescription> prepareAllLocalElements()
      Gets all IEObjectDescription for local element in Block
      Returns:
      iterable object of IEObjectDescription
    • prepareExplicitVariables

      protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> prepareExplicitVariables()
      Gets all IEObjectDescription for ExplicitVariable in Block
      Returns:
      iterable object of IEObjectDescription