public class ClassTypeInfo extends TypeInfo
Constructor and Description |
---|
ClassTypeInfo(ClassKind kind,
String name,
ModuleInfo module,
boolean nullable,
List<TypeParamInfo.Class> params,
DataObjectInfo dataObject) |
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.
|
DataObjectInfo |
getDataObject() |
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, isDataObjectHolder, isParameterized, isVariable, isVoid, toString
public ClassTypeInfo(ClassKind kind, String name, ModuleInfo module, boolean nullable, List<TypeParamInfo.Class> params, DataObjectInfo dataObject)
public List<TypeParamInfo.Class> getParams()
public String getModuleName()
VertxGen
annotated types.public ModuleInfo getModule()
VertxGen
annotated types.public boolean isNullable()
isNullable
in class TypeInfo
public ClassKind getKind()
public String getPackageName()
public ClassTypeInfo getRaw()
public void collectImports(Collection<ClassTypeInfo> imports)
TypeInfo
collectImports
in class TypeInfo
imports
- the importspublic DataObjectInfo getDataObject()
getDataObject
in class TypeInfo
DataObjectInfo
when this type can be adapted to a data object otherwise null
public String format(boolean qualified)
TypeInfo
qualified
- true when class fqcn should be used, otherwise simple names will be usedpublic String translateName(String id)
TypeInfo
lang
parameter. This has effect only for ApiTypeInfo
or
ParameterizedTypeInfo
types.translateName
in class TypeInfo
id
- the target language, for instance groovypublic String translateName(TypeNameTranslator translator)
translateName
in class TypeInfo
public String translatePackageName(TypeNameTranslator translator)
Copyright © 2022 Eclipse. All rights reserved.