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

public Interface ClassType

extends Type
Imports
jakarta.enterprise.lang.model.declarations.ClassInfo

A class type, including interface types, enum types, annotation types and record types. Class types are introduced by class declarations.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public default ClassType
asClass()

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

Returns this type as a class type.

public ClassInfo

Returns:

the declaration of this class type
declaration
()

Returns the declaration of this class type.

public default Type.Kind
kind()

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

Returns the kind of this type.

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

Method Detail

asClassback to summary
public default ClassType asClass()

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

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

Returns this type as a class type.

Returns:ClassType

this class type, never null

Annotations
@Override
declarationback to summary
public ClassInfo declaration()

Returns the declaration of this class type.

Returns:ClassInfo

the declaration of this class type

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