Top Description Methods
jakarta.enterprise.lang.model.types

public Interface ParameterizedType

extends Type
Imports
java.util.List, jakarta.enterprise.lang.model.declarations.ClassInfo

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

Method Summary

Modifier and TypeMethod and Description
public default ParameterizedType
public default ClassInfo

Returns:

the declaration of the generic class, never null
declaration
()

Returns the declaration of the generic class that was parameterized with a list of type arguments to form this parameterized type.

public ClassType

Returns:

the type of the generic class, never null
genericClass
()

Returns the type of the generic class that was parameterized with a list of type arguments to form this parameterized type.

public default Type.Kind
kind()

Implements jakarta.enterprise.lang.model.types.Type.kind.

Returns the kind of this type.

public List<Type>

Returns:

immutable list of type arguments, never null or empty
typeArguments
()

Returns the list of type arguments that were applied to a generic class to form this parameterized type.

Inherited from jakarta.enterprise.lang.model.types.Type:
asArrayasClassasDeclarationasPrimitiveasTypeasTypeVariableasVoidasWildcardTypeisArrayisClassisDeclarationisParameterizedTypeisPrimitiveisTypeisTypeVariableisVoidisWildcardType

Method Detail

asParameterizedTypeback to summary
public default ParameterizedType asParameterizedType()

Overrides default jakarta.enterprise.lang.model.types.Type.asParameterizedType.

Doc from jakarta.enterprise.lang.model.types.Type.asParameterizedType.

Returns this type as a parameterized type.

Returns:ParameterizedType

this parameterized type, never null

Annotations
@Override
declarationback to summary
public default ClassInfo declaration()

Returns the declaration of the generic class that was parameterized with a list of type arguments to form this parameterized type.

Returns:ClassInfo

the declaration of the generic class, never null

genericClassback to summary
public ClassType genericClass()

Returns the type of the generic class that was parameterized with a list of type arguments to form this parameterized type.

Returns:ClassType

the type of the generic class, never null

kindback to summary
public default Type.Kind kind()

Implements jakarta.enterprise.lang.model.types.Type.kind.

Doc from jakarta.enterprise.lang.model.types.Type.kind.

Returns the kind of this type.

Returns:Type.Kind

the kind of this type

Annotations
@Override
typeArgumentsback to summary
public List<Type> typeArguments()

Returns the list of type arguments that were applied to a generic class to form this parameterized type.

Returns:List<Type>

immutable list of type arguments, never null or empty