Class BslScopeProvider

  • All Implemented Interfaces:
    org.eclipse.xtext.scoping.impl.IDelegatingScopeProvider, org.eclipse.xtext.scoping.IScopeProvider

    public class BslScopeProvider
    extends org.eclipse.xtext.scoping.impl.AbstractScopeProvider
    implements org.eclipse.xtext.scoping.impl.IDelegatingScopeProvider
    This class contains custom scoping description. see : http://www.eclipse.org/Xtext/documentation/latest/xtext.html#scoping on how and when to use it
    • Constructor Detail

      • BslScopeProvider

        public BslScopeProvider()
    • Method Detail

      • getScope

        public org.eclipse.xtext.scoping.IScope getScope​(org.eclipse.emf.ecore.EObject context,
                                                         org.eclipse.emf.ecore.EReference reference)
        Specified by:
        getScope in interface org.eclipse.xtext.scoping.IScopeProvider
      • getDelegate

        public org.eclipse.xtext.scoping.IScopeProvider getDelegate()
        Specified by:
        getDelegate in interface org.eclipse.xtext.scoping.impl.IDelegatingScopeProvider
      • getUserVariablesScope

        public org.eclipse.xtext.scoping.IScope getUserVariablesScope​(VariablesScopeSpec spec)
        Gets scope of user variables
        Parameters:
        spec - parameters for creating scope, can't be null
        Returns:
        scope of user variables, never null
      • getContextVariablesScope

        public org.eclipse.xtext.scoping.IScope getContextVariablesScope​(Module module,
                                                                         Method method)
        Gets context scope of variable - module properties, global context properties and system enum properties
        Parameters:
        module - actual Module for creating appropriate scope, can't be null
        method - actual Method for creating appropriate scope, can be null
        Returns:
        context scope of variable - module properties, global context properties and system enum properties, never null