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, translateName
public ParameterizedTypeInfo(ClassTypeInfo raw, boolean nullable, List<TypeInfo> args)
public TypeInfo getErased()
public boolean isNullable()
isNullable
in class TypeInfo
public ClassTypeInfo getRaw()
public TypeInfo getArg(int index)
index
- the type argument indexpublic ClassKind getKind()
public void collectImports(Collection<ClassTypeInfo> 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(TypeNameTranslator translator)
translateName
in class TypeInfo
public boolean isParameterized()
isParameterized
in class TypeInfo
Copyright © 2019 Eclipse. All rights reserved.