Class QlDerivedStateComputer

  • All Implemented Interfaces:
    org.eclipse.xtext.resource.IDerivedStateComputer
    Direct Known Subclasses:
    QlDcsDerivedStateComputer, RightQlDerivedStateComputer

    public class QlDerivedStateComputer
    extends Object
    implements org.eclipse.xtext.resource.IDerivedStateComputer
    Implementation IDerivedStateComputer for Ql language
    • Constructor Detail

      • QlDerivedStateComputer

        public QlDerivedStateComputer()
    • Method Detail

      • installDerivedState

        public void installDerivedState​(org.eclipse.xtext.resource.DerivedStateAwareResource resource,
                                        boolean preLinkingPhase)
        Specified by:
        installDerivedState in interface org.eclipse.xtext.resource.IDerivedStateComputer
      • discardDerivedState

        public void discardDerivedState​(org.eclipse.xtext.resource.DerivedStateAwareResource resource)
        Specified by:
        discardDerivedState in interface org.eclipse.xtext.resource.IDerivedStateComputer
      • computeDbView

        protected void computeDbView​(AbstractQuerySchemaQuery query,
                                     org.eclipse.xtext.resource.DerivedStateAwareResource resource)
        Computes all DbView for one query
        Parameters:
        queries - processing QuerySchemaSelectQuery
        resource - ql grammar DerivedStateAwareResource
      • getAliasComputer

        protected AliasComputer getAliasComputer()
        Gets object for computing alias
        Returns:
        object for computing alias
        See Also:
        AliasComputer
      • createProxyForDbView

        protected void createProxyForDbView​(org.eclipse.emf.ecore.EObject object)
        Creates proxy for all elements which have DbViewElement
        Parameters:
        object - object for creating proxies, can't be null
      • discardDbViewForEachSource

        protected void discardDbViewForEachSource​(QuerySchemaSource source)
        Discards DbView for each source
        Parameters:
        source - QuerySchemaSource
      • getAllDbViewNamesWithSinglePart

        protected Collection<CaseInsensitiveString> getAllDbViewNamesWithSinglePart​(org.eclipse.emf.ecore.EObject context)
        Gets all DbView names with single part from scope by actual context
        Parameters:
        context - actual context for getting scope of DbViewElement
        Returns:
        collection of DbView names with single part, never null