Class AbstractNestedTypeAwareImportNormalizer

  • Direct Known Subclasses:
    NestedTypeAwareImportNormalizer, NestedTypeAwareImportNormalizerWithDotSeparator

    public abstract class AbstractNestedTypeAwareImportNormalizer
    extends org.eclipse.xtext.scoping.impl.ImportNormalizer
    Abstract base implementation of import normalizers that are aware of nested type references, e.g. import java.util.Map allows to use Map$Entry entry and Map.Entry entry. Concrete subtypes handle imports that use the dot or the dollar sign respectively. The base implementation refuses to resolve relative imports, e.g. an import for the package java.* does not allow to use the type util.Map.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractNestedTypeAwareImportNormalizer​(org.eclipse.xtext.naming.QualifiedName importedNamespace, boolean wildCard, boolean ignoreCase)  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static org.eclipse.xtext.scoping.impl.ImportNormalizer createNestedTypeAwareImportNormalizer​(org.eclipse.xtext.naming.QualifiedName importedNamespace, boolean wildcard, boolean ignoreCase)  
      org.eclipse.xtext.naming.QualifiedName resolve​(org.eclipse.xtext.naming.QualifiedName relativeName)  
      protected abstract org.eclipse.xtext.naming.QualifiedName resolveNonWildcard​(org.eclipse.xtext.naming.QualifiedName relativeName)  
      protected org.eclipse.xtext.naming.QualifiedName resolveWildcard​(org.eclipse.xtext.naming.QualifiedName relativeName)  
      • Methods inherited from class org.eclipse.xtext.scoping.impl.ImportNormalizer

        deresolve, equals, getImportedNamespacePrefix, hashCode, hasWildCard, isIgnoreCase, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractNestedTypeAwareImportNormalizer

        protected AbstractNestedTypeAwareImportNormalizer​(org.eclipse.xtext.naming.QualifiedName importedNamespace,
                                                          boolean wildCard,
                                                          boolean ignoreCase)
    • Method Detail

      • createNestedTypeAwareImportNormalizer

        public static org.eclipse.xtext.scoping.impl.ImportNormalizer createNestedTypeAwareImportNormalizer​(org.eclipse.xtext.naming.QualifiedName importedNamespace,
                                                                                                            boolean wildcard,
                                                                                                            boolean ignoreCase)
      • resolve

        public org.eclipse.xtext.naming.QualifiedName resolve​(org.eclipse.xtext.naming.QualifiedName relativeName)
        Overrides:
        resolve in class org.eclipse.xtext.scoping.impl.ImportNormalizer
      • resolveWildcard

        protected org.eclipse.xtext.naming.QualifiedName resolveWildcard​(org.eclipse.xtext.naming.QualifiedName relativeName)
      • resolveNonWildcard

        protected abstract org.eclipse.xtext.naming.QualifiedName resolveNonWildcard​(org.eclipse.xtext.naming.QualifiedName relativeName)