Class XImportSectionNamespaceScopeProvider

  • All Implemented Interfaces:
    org.eclipse.xtext.scoping.IScopeProvider

    public class XImportSectionNamespaceScopeProvider
    extends org.eclipse.xtext.scoping.impl.AbstractGlobalScopeDelegatingScopeProvider
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.eclipse.xtext.naming.QualifiedName JAVA_LANG  
      static org.eclipse.xtext.naming.QualifiedName XBASE_LIB  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.xtext.scoping.impl.ImportNormalizer createImportedNamespaceResolver​(java.lang.String namespace, boolean ignoreCase)
      Create a new ImportNormalizer for the given namespace.
      protected org.eclipse.xtext.scoping.impl.ImportScope createImportScope​(org.eclipse.xtext.scoping.IScope parent, java.util.List<org.eclipse.xtext.scoping.impl.ImportNormalizer> namespaceResolvers, org.eclipse.xtext.resource.ISelectable importFrom, org.eclipse.emf.ecore.EClass type, boolean ignoreCase)  
      protected org.eclipse.xtext.scoping.impl.ImportNormalizer doCreateImportNormalizer​(org.eclipse.xtext.naming.QualifiedName importedNamespace, boolean wildcard, boolean ignoreCase)  
      protected org.eclipse.xtext.resource.ISelectable getAllDescriptions​(org.eclipse.emf.ecore.resource.Resource resource)  
      protected IJvmModelAssociations getAssociations()  
      protected org.eclipse.xtext.scoping.IScope getGlobalScope​(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference)  
      protected java.util.List<org.eclipse.xtext.scoping.impl.ImportNormalizer> getImplicitImports​(boolean ignoreCase)  
      protected java.util.List<org.eclipse.xtext.scoping.impl.ImportNormalizer> getImportedNamespaceResolvers​(org.eclipse.emf.ecore.EObject context, boolean ignoreCase)  
      protected java.util.List<org.eclipse.xtext.scoping.impl.ImportNormalizer> getImportedNamespaceResolvers​(XImportSection importSection, boolean ignoreCase)  
      protected IImportsConfiguration getImportsConfiguration()  
      protected java.lang.Object getKey​(org.eclipse.emf.common.notify.Notifier context, org.eclipse.emf.ecore.EReference reference)  
      protected org.eclipse.xtext.scoping.IScope getLocalElementsScope​(org.eclipse.xtext.scoping.IScope parent, org.eclipse.xtext.scoping.IScope globalScope, org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)  
      org.eclipse.xtext.naming.IQualifiedNameConverter getQualifiedNameConverter()  
      protected org.eclipse.xtext.naming.QualifiedName getQualifiedNameOfLocalElement​(org.eclipse.emf.ecore.EObject context)  
      org.eclipse.xtext.naming.IQualifiedNameProvider getQualifiedNameProvider()  
      protected org.eclipse.xtext.scoping.IScope getResourceScope​(org.eclipse.xtext.scoping.IScope globalScope, org.eclipse.emf.ecore.resource.Resource res, org.eclipse.emf.ecore.EReference reference)  
      org.eclipse.xtext.scoping.IScope getScope​(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)  
      java.lang.String getWildcard()  
      protected org.eclipse.xtext.resource.ISelectable internalGetAllDescriptions​(org.eclipse.emf.ecore.resource.Resource resource)  
      protected java.util.List<org.eclipse.xtext.scoping.impl.ImportNormalizer> internalGetImportedNamespaceResolvers​(org.eclipse.emf.ecore.EObject context, boolean ignoreCase)  
      protected org.eclipse.xtext.scoping.IScope internalGetScope​(org.eclipse.xtext.scoping.IScope parent, org.eclipse.xtext.scoping.IScope globalScope, org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)  
      • Methods inherited from class org.eclipse.xtext.scoping.impl.AbstractGlobalScopeDelegatingScopeProvider

        getGlobalScope, isIgnoreCase, setWrapper, wrap
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • JAVA_LANG

        public static final org.eclipse.xtext.naming.QualifiedName JAVA_LANG
      • XBASE_LIB

        public static final org.eclipse.xtext.naming.QualifiedName XBASE_LIB
    • Constructor Detail

      • XImportSectionNamespaceScopeProvider

        public XImportSectionNamespaceScopeProvider()
    • Method Detail

      • getQualifiedNameProvider

        public org.eclipse.xtext.naming.IQualifiedNameProvider getQualifiedNameProvider()
      • getQualifiedNameConverter

        public org.eclipse.xtext.naming.IQualifiedNameConverter getQualifiedNameConverter()
      • getScope

        public org.eclipse.xtext.scoping.IScope getScope​(org.eclipse.emf.ecore.EObject context,
                                                         org.eclipse.emf.ecore.EReference reference)
      • getGlobalScope

        protected org.eclipse.xtext.scoping.IScope getGlobalScope​(org.eclipse.emf.ecore.resource.Resource context,
                                                                  org.eclipse.emf.ecore.EReference reference)
        Overrides:
        getGlobalScope in class org.eclipse.xtext.scoping.impl.AbstractGlobalScopeDelegatingScopeProvider
      • internalGetScope

        protected org.eclipse.xtext.scoping.IScope internalGetScope​(org.eclipse.xtext.scoping.IScope parent,
                                                                    org.eclipse.xtext.scoping.IScope globalScope,
                                                                    org.eclipse.emf.ecore.EObject context,
                                                                    org.eclipse.emf.ecore.EReference reference)
      • getLocalElementsScope

        protected org.eclipse.xtext.scoping.IScope getLocalElementsScope​(org.eclipse.xtext.scoping.IScope parent,
                                                                         org.eclipse.xtext.scoping.IScope globalScope,
                                                                         org.eclipse.emf.ecore.EObject context,
                                                                         org.eclipse.emf.ecore.EReference reference)
      • getResourceScope

        protected org.eclipse.xtext.scoping.IScope getResourceScope​(org.eclipse.xtext.scoping.IScope globalScope,
                                                                    org.eclipse.emf.ecore.resource.Resource res,
                                                                    org.eclipse.emf.ecore.EReference reference)
      • getImplicitImports

        protected java.util.List<org.eclipse.xtext.scoping.impl.ImportNormalizer> getImplicitImports​(boolean ignoreCase)
        Parameters:
        ignoreCase - true if the import normalizer should use case insensitive compare logic.
      • createImportScope

        protected org.eclipse.xtext.scoping.impl.ImportScope createImportScope​(org.eclipse.xtext.scoping.IScope parent,
                                                                               java.util.List<org.eclipse.xtext.scoping.impl.ImportNormalizer> namespaceResolvers,
                                                                               org.eclipse.xtext.resource.ISelectable importFrom,
                                                                               org.eclipse.emf.ecore.EClass type,
                                                                               boolean ignoreCase)
      • getKey

        protected java.lang.Object getKey​(org.eclipse.emf.common.notify.Notifier context,
                                          org.eclipse.emf.ecore.EReference reference)
      • getImportedNamespaceResolvers

        protected java.util.List<org.eclipse.xtext.scoping.impl.ImportNormalizer> getImportedNamespaceResolvers​(org.eclipse.emf.ecore.EObject context,
                                                                                                                boolean ignoreCase)
      • internalGetImportedNamespaceResolvers

        protected java.util.List<org.eclipse.xtext.scoping.impl.ImportNormalizer> internalGetImportedNamespaceResolvers​(org.eclipse.emf.ecore.EObject context,
                                                                                                                        boolean ignoreCase)
      • getImportedNamespaceResolvers

        protected java.util.List<org.eclipse.xtext.scoping.impl.ImportNormalizer> getImportedNamespaceResolvers​(XImportSection importSection,
                                                                                                                boolean ignoreCase)
      • createImportedNamespaceResolver

        protected org.eclipse.xtext.scoping.impl.ImportNormalizer createImportedNamespaceResolver​(java.lang.String namespace,
                                                                                                  boolean ignoreCase)
        Create a new ImportNormalizer for the given namespace.
        Parameters:
        namespace - the namespace.
        ignoreCase - true if the resolver should be case insensitive.
        Returns:
        a new ImportNormalizer or null if the namespace cannot be converted to a valid qualified name.
      • doCreateImportNormalizer

        protected org.eclipse.xtext.scoping.impl.ImportNormalizer doCreateImportNormalizer​(org.eclipse.xtext.naming.QualifiedName importedNamespace,
                                                                                           boolean wildcard,
                                                                                           boolean ignoreCase)
      • getQualifiedNameOfLocalElement

        protected org.eclipse.xtext.naming.QualifiedName getQualifiedNameOfLocalElement​(org.eclipse.emf.ecore.EObject context)
      • getAllDescriptions

        protected org.eclipse.xtext.resource.ISelectable getAllDescriptions​(org.eclipse.emf.ecore.resource.Resource resource)
      • internalGetAllDescriptions

        protected org.eclipse.xtext.resource.ISelectable internalGetAllDescriptions​(org.eclipse.emf.ecore.resource.Resource resource)
      • getWildcard

        public java.lang.String getWildcard()