public abstract class TypeInfo extends Object
Constructor and Description |
---|
TypeInfo() |
Modifier and Type | Method and Description |
---|---|
void |
collectImports(Collection<ClassTypeInfo> imports)
Collect the import fqcn needed by this type.
|
abstract boolean |
equals(Object obj) |
DataObjectInfo |
getDataObject() |
TypeInfo |
getErased() |
abstract ClassKind |
getKind() |
String |
getName() |
ClassTypeInfo |
getRaw() |
String |
getSimpleName() |
int |
hashCode() |
boolean |
isDataObjectHolder() |
boolean |
isNullable() |
boolean |
isParameterized() |
boolean |
isVariable() |
boolean |
isVoid() |
String |
toString() |
String |
translateName(String lang)
Translate the current type name based on the module group package name and the specified
lang parameter. |
String |
translateName(TypeNameTranslator translator) |
public void collectImports(Collection<ClassTypeInfo> imports)
imports
- the importspublic TypeInfo getErased()
public ClassTypeInfo getRaw()
public abstract ClassKind getKind()
public String getName()
io.vertx.core.Handler<io.vertx.core.buffer.Buffer>
public boolean isNullable()
public String translateName(String lang)
lang
parameter. This has effect only for ApiTypeInfo
or
ParameterizedTypeInfo
types.lang
- the target language, for instance groovypublic String translateName(TypeNameTranslator translator)
public String getSimpleName()
Handler<Buffer>
public String toString()
public boolean isParameterized()
public boolean isVariable()
public boolean isDataObjectHolder()
true
if this type holds a DataObjectInfo
public DataObjectInfo getDataObject()
DataObjectInfo
when this type can be adapted to a data object otherwise null
public boolean isVoid()
Copyright © 2022 Eclipse. All rights reserved.