public class ParameterizedTypeInfo extends TypeInfo
| Constructor and Description |
|---|
ParameterizedTypeInfo(ClassTypeInfo raw,
boolean nullable,
List<TypeInfo> args) |
| 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.
|
TypeInfo |
getArg(int index) |
List<TypeInfo> |
getArgs() |
TypeInfo |
getErased() |
ClassKind |
getKind() |
ClassTypeInfo |
getRaw() |
boolean |
isNullable() |
boolean |
isParameterized() |
String |
translateName(TypeNameTranslator translator) |
getName, getSimpleName, hashCode, isVariable, isVoid, toString, translateNamepublic ParameterizedTypeInfo(ClassTypeInfo raw, boolean nullable, List<TypeInfo> args)
public TypeInfo getErased()
public boolean isNullable()
isNullable in class TypeInfopublic ClassTypeInfo getRaw()
public TypeInfo getArg(int index)
index - the type argument indexpublic ClassKind getKind()
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(TypeNameTranslator translator)
translateName in class TypeInfopublic boolean isParameterized()
isParameterized in class TypeInfoCopyright © 2020. All rights reserved.