public static class TypeInfo.Class extends TypeInfo
Modifier and Type | Class and Description |
---|---|
static class |
TypeInfo.Class.Api
A special subclass for
ClassKind.API kinds. |
static class |
TypeInfo.Class.Enum |
TypeInfo.Class, TypeInfo.Factory, TypeInfo.Parameterized, TypeInfo.Primitive, TypeInfo.Variable, TypeInfo.Void
Constructor and Description |
---|
Class(ClassKind kind,
String name,
ModuleInfo module,
boolean proxyGen,
List<TypeParamInfo.Class> params) |
Modifier and Type | Method and Description |
---|---|
void |
collectImports(Collection<TypeInfo.Class> 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() |
TypeInfo.Class |
getRaw() |
String |
getSimpleName(Case _case) |
boolean |
isProxyGen() |
String |
translateName(String lang)
Translate the current type name based on the module group package name and the specified
lang parameter. |
String |
translatePackageName(String id) |
public Class(ClassKind kind, String name, ModuleInfo module, boolean proxyGen, List<TypeParamInfo.Class> params)
public List<TypeParamInfo.Class> getParams()
public String getModuleName()
VertxGen
annotated types.public ModuleInfo getModule()
VertxGen
annotated types.public ClassKind getKind()
public String getPackageName()
public boolean isProxyGen()
public TypeInfo.Class getRaw()
public void collectImports(Collection<TypeInfo.Class> imports)
TypeInfo
collectImports
in class TypeInfo
imports
- the importspublic String format(boolean qualified)
TypeInfo
qualified
- true when class fqcn should be used, otherwise simple names will be usedpublic String translateName(String lang)
TypeInfo
lang
parameter. This has effect only for TypeInfo.Class.Api
or
TypeInfo.Parameterized
types.translateName
in class TypeInfo
lang
- the target language, for instance groovyCopyright © 2015. All rights reserved.