@Mutable
public interface TypeImporter
| Modifier and Type | Method and Description |
|---|---|
@Nonnull String |
importIfPossible(@Nonnull Class<?> type)
Imports the given type if its simple name is not yet mapped to a different type.
|
@Nonnull String |
importIfPossible(@Nonnull Element typeElement)
Imports the given element, which has to be qualified nameable, if its simple name is not yet mapped to a different type.
|
@Nonnull String |
importIfPossible(@Nonnull String qualifiedTypeName)
Imports the given qualified type name if its simple name is not yet mapped to a different type.
|
@Nonnull String |
importIfPossible(@Nonnull TypeMirror typeMirror)
Imports the given type mirror with its generic parameters if their simple names are not yet mapped to different types.
|
@Nonnull String |
importStaticallyIfPossible(@Nonnull String qualifiedMemberName)
Imports the given qualified member name if its simple name is not yet mapped to a different member.
|
@Impure @Nonnull @Nonnull String importIfPossible(@Nonnull @Nonnull String qualifiedTypeName)
qualifiedName.contains(".") - the name has to be qualified.@Impure @Nonnull @Nonnull String importIfPossible(@Nonnull @Nonnull Class<?> type)
@Impure @Nonnull @Nonnull String importIfPossible(@Nonnull @Nonnull Element typeElement)
typeElement.getKind().isClass() || typeElement.getKind().isInterface() - the element has to be a type.@Impure @Nonnull @Nonnull String importIfPossible(@Nonnull @Nonnull TypeMirror typeMirror)
@Impure @Nonnull @Nonnull String importStaticallyIfPossible(@Nonnull @Nonnull String qualifiedMemberName)
Copyright © 2017. All rights reserved.