Package org.eclipse.xtext.xbase.scoping
Class XImportSectionNamespaceScopeProvider
- java.lang.Object
-
- org.eclipse.xtext.scoping.impl.AbstractScopeProvider
-
- org.eclipse.xtext.scoping.impl.AbstractGlobalScopeDelegatingScopeProvider
-
- org.eclipse.xtext.xbase.scoping.XImportSectionNamespaceScopeProvider
-
- All Implemented Interfaces:
org.eclipse.xtext.scoping.IScopeProvider
public class XImportSectionNamespaceScopeProvider extends org.eclipse.xtext.scoping.impl.AbstractGlobalScopeDelegatingScopeProvider
-
-
Constructor Summary
Constructors Constructor Description XImportSectionNamespaceScopeProvider()
-
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 newImportNormalizer
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)
-
-
-
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 classorg.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)
-
getImportsConfiguration
protected IImportsConfiguration getImportsConfiguration()
-
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 newImportNormalizer
for the given namespace.- Parameters:
namespace
- the namespace.ignoreCase
-true
if the resolver should be case insensitive.- Returns:
- a new
ImportNormalizer
ornull
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()
-
getAssociations
protected IJvmModelAssociations getAssociations()
-
-