Class NestedTypeAwareImportNormalizer


  • public class NestedTypeAwareImportNormalizer
    extends AbstractNestedTypeAwareImportNormalizer
    Import normalizer that is aware of nested type references, e.g. import java.util.Map allows to use Map$Entry entry and Map.Entry entry. This import normalizer handles imports that use the dollar ('$') sign as the separator for nested types.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean allowWildcard  
    • Constructor Summary

      Constructors 
      Constructor Description
      NestedTypeAwareImportNormalizer​(org.eclipse.xtext.naming.QualifiedName importedNamespace, boolean wildcard, boolean ignoreCase)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.xtext.naming.QualifiedName deresolve​(org.eclipse.xtext.naming.QualifiedName fullyQualifiedName)  
      protected boolean importedNamespaceHasDollar()  
      protected 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

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

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

      • allowWildcard

        protected final boolean allowWildcard
    • Constructor Detail

      • NestedTypeAwareImportNormalizer

        public NestedTypeAwareImportNormalizer​(org.eclipse.xtext.naming.QualifiedName importedNamespace,
                                               boolean wildcard,
                                               boolean ignoreCase)
    • Method Detail

      • importedNamespaceHasDollar

        protected boolean importedNamespaceHasDollar()
      • deresolve

        public org.eclipse.xtext.naming.QualifiedName deresolve​(org.eclipse.xtext.naming.QualifiedName fullyQualifiedName)
        Overrides:
        deresolve in class org.eclipse.xtext.scoping.impl.ImportNormalizer