public abstract class AbstractNestedTypeAwareImportNormalizer extends ImportNormalizer
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
.Modifier | Constructor and Description |
---|---|
protected |
AbstractNestedTypeAwareImportNormalizer(QualifiedName importedNamespace,
boolean wildCard,
boolean ignoreCase) |
Modifier and Type | Method and Description |
---|---|
static ImportNormalizer |
createNestedTypeAwareImportNormalizer(QualifiedName importedNamespace,
boolean wildcard,
boolean ignoreCase) |
QualifiedName |
resolve(QualifiedName relativeName) |
protected abstract QualifiedName |
resolveNonWildcard(QualifiedName relativeName) |
protected QualifiedName |
resolveWildcard(QualifiedName relativeName) |
deresolve, equals, getImportedNamespacePrefix, hashCode, hasWildCard, isIgnoreCase, toString
protected AbstractNestedTypeAwareImportNormalizer(QualifiedName importedNamespace, boolean wildCard, boolean ignoreCase)
public static ImportNormalizer createNestedTypeAwareImportNormalizer(QualifiedName importedNamespace, boolean wildcard, boolean ignoreCase)
public QualifiedName resolve(QualifiedName relativeName)
resolve
in class ImportNormalizer
protected QualifiedName resolveWildcard(QualifiedName relativeName)
protected abstract QualifiedName resolveNonWildcard(QualifiedName relativeName)