TypeInfo.Class, TypeInfo.Factory, TypeInfo.Parameterized, TypeInfo.Primitive, TypeInfo.Variable, TypeInfo.Void, TypeInfo.Wildcard
Constructor and Description |
---|
Parameterized(TypeInfo.Class raw,
List<TypeInfo> args) |
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.
|
List<TypeInfo> |
getArgs() |
TypeInfo |
getErased() |
ClassKind |
getKind() |
TypeInfo.Class |
getRaw() |
String |
translateName(String lang)
Translate the current type name based on the module group package name and the specified
lang parameter. |
public Parameterized(TypeInfo.Class raw, List<TypeInfo> args)
public TypeInfo getErased()
public TypeInfo.Class getRaw()
public ClassKind getKind()
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.