Class BlockVariablesScope

    • Constructor Detail

      • 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 Detail

      • getSingleLocalElementByName

        protected org.eclipse.xtext.resource.IEObjectDescription getSingleLocalElementByName​(org.eclipse.xtext.naming.QualifiedName qName)
        Overrides:
        getSingleLocalElementByName 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
      • 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