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, isWildcardType
annotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotation
ClassType genericClass()
null
java.util.List<Type> typeArguments()
null
or emptydefault ClassInfo declaration()
null
default Type.Kind kind()
Type
default ParameterizedType asParameterizedType()
Type
asParameterizedType
in interface Type
null