public class XImportSectionNamespaceScopeProvider extends AbstractGlobalScopeDelegatingScopeProvider
Modifier and Type | Field and Description |
---|---|
static QualifiedName |
JAVA_LANG |
static QualifiedName |
XBASE_LIB |
Constructor and Description |
---|
XImportSectionNamespaceScopeProvider() |
Modifier and Type | Method and Description |
---|---|
protected ImportNormalizer |
createImportedNamespaceResolver(java.lang.String namespace,
boolean ignoreCase)
Create a new
ImportNormalizer for the given namespace. |
protected ImportScope |
createImportScope(IScope parent,
java.util.List<ImportNormalizer> namespaceResolvers,
ISelectable importFrom,
org.eclipse.emf.ecore.EClass type,
boolean ignoreCase) |
protected ImportNormalizer |
doCreateImportNormalizer(QualifiedName importedNamespace,
boolean wildcard,
boolean ignoreCase) |
protected ISelectable |
getAllDescriptions(org.eclipse.emf.ecore.resource.Resource resource) |
protected IJvmModelAssociations |
getAssociations() |
protected IScope |
getGlobalScope(org.eclipse.emf.ecore.resource.Resource context,
org.eclipse.emf.ecore.EReference reference) |
protected java.util.List<ImportNormalizer> |
getImplicitImports(boolean ignoreCase) |
protected java.util.List<ImportNormalizer> |
getImportedNamespaceResolvers(org.eclipse.emf.ecore.EObject context,
boolean ignoreCase) |
protected java.util.List<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 IScope |
getLocalElementsScope(IScope parent,
IScope globalScope,
org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EReference reference) |
IQualifiedNameConverter |
getQualifiedNameConverter() |
protected QualifiedName |
getQualifiedNameOfLocalElement(org.eclipse.emf.ecore.EObject context) |
IQualifiedNameProvider |
getQualifiedNameProvider() |
protected IScope |
getResourceScope(IScope globalScope,
org.eclipse.emf.ecore.resource.Resource res,
org.eclipse.emf.ecore.EReference reference) |
IScope |
getScope(org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EReference reference)
Returns a scope for the given context.
|
java.lang.String |
getWildcard() |
protected ISelectable |
internalGetAllDescriptions(org.eclipse.emf.ecore.resource.Resource resource) |
protected java.util.List<ImportNormalizer> |
internalGetImportedNamespaceResolvers(org.eclipse.emf.ecore.EObject context,
boolean ignoreCase) |
protected IScope |
internalGetScope(IScope parent,
IScope globalScope,
org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EReference reference) |
getGlobalScope, isIgnoreCase, setWrapper, wrap
public static final QualifiedName JAVA_LANG
public static final QualifiedName XBASE_LIB
public XImportSectionNamespaceScopeProvider()
public IQualifiedNameProvider getQualifiedNameProvider()
public IQualifiedNameConverter getQualifiedNameConverter()
public IScope getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
IScopeProvider
context
- the element from which an element shall be referenced. It doesn't need to be the element
containing the reference, it is just used to find the most inner scope for given EReference
.reference
- the reference for which to get the scope.IScope
representing the inner most IScope
for the
passed context and reference. Note for implementors: The result may not be null
.
Return IScope.NULLSCOPE
instead.protected IScope getGlobalScope(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference)
getGlobalScope
in class AbstractGlobalScopeDelegatingScopeProvider
protected IScope internalGetScope(IScope parent, IScope globalScope, org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
protected IScope getLocalElementsScope(IScope parent, IScope globalScope, org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
protected IScope getResourceScope(IScope globalScope, org.eclipse.emf.ecore.resource.Resource res, org.eclipse.emf.ecore.EReference reference)
protected java.util.List<ImportNormalizer> getImplicitImports(boolean ignoreCase)
ignoreCase
- true
if the import normalizer should use case insensitive compare logic.protected ImportScope createImportScope(IScope parent, java.util.List<ImportNormalizer> namespaceResolvers, ISelectable importFrom, org.eclipse.emf.ecore.EClass type, boolean ignoreCase)
protected java.lang.Object getKey(org.eclipse.emf.common.notify.Notifier context, org.eclipse.emf.ecore.EReference reference)
protected java.util.List<ImportNormalizer> getImportedNamespaceResolvers(org.eclipse.emf.ecore.EObject context, boolean ignoreCase)
protected java.util.List<ImportNormalizer> internalGetImportedNamespaceResolvers(org.eclipse.emf.ecore.EObject context, boolean ignoreCase)
protected IImportsConfiguration getImportsConfiguration()
protected java.util.List<ImportNormalizer> getImportedNamespaceResolvers(XImportSection importSection, boolean ignoreCase)
protected ImportNormalizer createImportedNamespaceResolver(java.lang.String namespace, boolean ignoreCase)
ImportNormalizer
for the given namespace.namespace
- the namespace.ignoreCase
- true
if the resolver should be case insensitive.ImportNormalizer
or null
if the namespace cannot be converted to a valid
qualified name.protected ImportNormalizer doCreateImportNormalizer(QualifiedName importedNamespace, boolean wildcard, boolean ignoreCase)
protected QualifiedName getQualifiedNameOfLocalElement(org.eclipse.emf.ecore.EObject context)
protected ISelectable getAllDescriptions(org.eclipse.emf.ecore.resource.Resource resource)
protected ISelectable internalGetAllDescriptions(org.eclipse.emf.ecore.resource.Resource resource)
public java.lang.String getWildcard()
protected IJvmModelAssociations getAssociations()