public class ClassTypeInfo extends TypeInfo
| Constructor and Description |
|---|
ClassTypeInfo(ClassKind kind,
String name,
ModuleInfo module,
boolean nullable,
List<TypeParamInfo.Class> params) |
| Modifier and Type | Method and Description |
|---|---|
void |
collectImports(Collection<ClassTypeInfo> imports)
Collect the import fqcn needed by this type.
|
boolean |
equals(Object obj) |
String |
format(boolean qualified)
Renders the type name.
|
ClassKind |
getKind() |
ModuleInfo |
getModule() |
String |
getModuleName() |
String |
getPackageName() |
List<TypeParamInfo.Class> |
getParams() |
ClassTypeInfo |
getRaw() |
String |
getSimpleName(Case _case) |
boolean |
isNullable() |
String |
translateName(String id)
Translate the current type name based on the module group package name and the specified
lang parameter. |
String |
translateName(TypeNameTranslator translator) |
String |
translatePackageName(String id) |
String |
translatePackageName(TypeNameTranslator translator) |
getErased, getName, getSimpleName, hashCode, isParameterized, isVariable, isVoid, toStringpublic ClassTypeInfo(ClassKind kind, String name, ModuleInfo module, boolean nullable, List<TypeParamInfo.Class> params)
public List<TypeParamInfo.Class> getParams()
public String getModuleName()
VertxGen annotated types.public ModuleInfo getModule()
VertxGen annotated types.public boolean isNullable()
isNullable in class TypeInfopublic ClassKind getKind()
public String getPackageName()
public ClassTypeInfo getRaw()
public void collectImports(Collection<ClassTypeInfo> imports)
TypeInfocollectImports in class TypeInfoimports - the importspublic String format(boolean qualified)
TypeInfoqualified - true when class fqcn should be used, otherwise simple names will be usedpublic String translateName(String id)
TypeInfolang parameter. This has effect only for ApiTypeInfo or
ParameterizedTypeInfo types.translateName in class TypeInfoid - the target language, for instance groovypublic String translateName(TypeNameTranslator translator)
translateName in class TypeInfopublic String translatePackageName(TypeNameTranslator translator)
Copyright © 2020. All rights reserved.