public class ImportManager
extends java.lang.Object
Constructor and Description |
---|
ImportManager() |
ImportManager(boolean organizeImports) |
ImportManager(boolean organizeImports,
char innerTypeSeparator) |
ImportManager(boolean organizeImports,
JvmDeclaredType thisType) |
ImportManager(boolean organizeImports,
JvmDeclaredType thisType,
char innerTypeSeparator) |
Modifier and Type | Method and Description |
---|---|
boolean |
addImportFor(JvmType type) |
protected boolean |
allowsSimpleName(java.lang.String qualifiedName,
java.lang.String simpleName) |
void |
appendType(java.lang.Class<?> type,
java.lang.StringBuilder builder) |
void |
appendType(JvmType type,
java.lang.StringBuilder builder) |
protected void |
appendType(java.lang.String qualifiedName,
java.lang.String shortName,
java.lang.String namespaceImport,
java.lang.StringBuilder builder) |
protected void |
appendType(java.lang.String qualifiedName,
java.lang.String shortName,
java.lang.String outerShortName,
java.lang.String namespaceImport,
java.lang.StringBuilder builder) |
java.util.List<java.lang.String> |
getImports() |
protected boolean |
needsQualifiedName(java.lang.String qualifiedName,
java.lang.String simpleName) |
protected void |
registerSimpleNamesOfInnerClasses(JvmDeclaredType thisType,
java.util.LinkedHashSet<JvmType> handled) |
java.lang.CharSequence |
serialize(java.lang.Class<?> type) |
java.lang.CharSequence |
serialize(JvmType type) |
protected boolean |
shouldUseQualifiedNestedName(java.lang.String identifier) |
public ImportManager(boolean organizeImports, char innerTypeSeparator)
public ImportManager()
public ImportManager(boolean organizeImports)
public ImportManager(boolean organizeImports, JvmDeclaredType thisType)
public ImportManager(boolean organizeImports, JvmDeclaredType thisType, char innerTypeSeparator)
protected void registerSimpleNamesOfInnerClasses(JvmDeclaredType thisType, java.util.LinkedHashSet<JvmType> handled)
public java.lang.CharSequence serialize(JvmType type)
public java.lang.CharSequence serialize(java.lang.Class<?> type)
public void appendType(JvmType type, java.lang.StringBuilder builder)
protected boolean shouldUseQualifiedNestedName(java.lang.String identifier)
public void appendType(java.lang.Class<?> type, java.lang.StringBuilder builder)
protected void appendType(java.lang.String qualifiedName, java.lang.String shortName, java.lang.String namespaceImport, java.lang.StringBuilder builder)
protected void appendType(java.lang.String qualifiedName, java.lang.String shortName, java.lang.String outerShortName, java.lang.String namespaceImport, java.lang.StringBuilder builder)
protected boolean allowsSimpleName(java.lang.String qualifiedName, java.lang.String simpleName)
protected boolean needsQualifiedName(java.lang.String qualifiedName, java.lang.String simpleName)
public boolean addImportFor(JvmType type)
public java.util.List<java.lang.String> getImports()