public interface ParameterizedType extends Type
| Modifier and Type | Method and Description |
|---|---|
default ParameterizedType |
asParameterizedType()
Returns this type as a parameterized type.
|
default ClassInfo |
declaration()
Returns the declaration of the generic class
that was parameterized with a list of type arguments to form this parameterized type.
|
ClassType |
genericClass()
Returns the type of the generic class that was parameterized with a list
of type arguments to form this parameterized type.
|
default Type.Kind |
kind()
Returns the kind of this type.
|
java.util.List<Type> |
typeArguments()
Returns the list of type arguments that were applied to a generic class to form this parameterized type.
|
asArray, asClass, asDeclaration, asPrimitive, asType, asTypeVariable, asVoid, asWildcardType, isArray, isClass, isDeclaration, isParameterizedType, isPrimitive, isType, isTypeVariable, isVoid, isWildcardTypeannotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotationClassType genericClass()
nulljava.util.List<Type> typeArguments()
null or emptydefault ClassInfo declaration()
nulldefault Type.Kind kind()
Typedefault ParameterizedType asParameterizedType()
TypeasParameterizedType in interface Typenull