Interface ParameterizedType
- All Superinterfaces:
AnnotationTarget,Type
A parameterized type. That is, a generic class together with
a list of type arguments. The list of type arguments
has the same shape as the class's list of type parameters.
- Since:
- 4.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault ParameterizedTypeReturns this type as a parameterized type.default ClassInfoReturns the declaration of the generic class that was parameterized with a list of type arguments to form this parameterized type.Returns the type of the generic class that was parameterized with a list of type arguments to form this parameterized type.default Type.Kindkind()Returns the kind of this type.Returns the list of type arguments that were applied to a generic class to form this parameterized type.Methods inherited from interface jakarta.enterprise.lang.model.AnnotationTarget
annotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotationMethods inherited from interface jakarta.enterprise.lang.model.types.Type
asArray, asClass, asDeclaration, asPrimitive, asType, asTypeVariable, asVoid, asWildcardType, isArray, isClass, isDeclaration, isParameterizedType, isPrimitive, isType, isTypeVariable, isVoid, isWildcardType
-
Method Details
-
genericClass
ClassType genericClass()Returns the type of the generic class that was parameterized with a list of type arguments to form this parameterized type.- Returns:
- the type of the generic class, never
null
-
typeArguments
Returns the list of type arguments that were applied to a generic class to form this parameterized type.- Returns:
- immutable list of type arguments, never
nullor empty
-
declaration
Returns the declaration of the generic class that was parameterized with a list of type arguments to form this parameterized type.- Returns:
- the declaration of the generic class, never
null
-
kind
Description copied from interface:TypeReturns the kind of this type. -
asParameterizedType
Description copied from interface:TypeReturns this type as a parameterized type.- Specified by:
asParameterizedTypein interfaceType- Returns:
- this parameterized type, never
null
-