Interface ClassType
-
- All Superinterfaces:
AnnotationTarget,Type
public interface ClassType extends Type
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ClassTypeasClass()Returns this type as a class type.ClassInfodeclaration()Returns the declaration of this class type.default Type.Kindkind()Returns the kind of this type.-
Methods inherited from interface jakarta.enterprise.lang.model.AnnotationTarget
annotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotation
-
Methods inherited from interface jakarta.enterprise.lang.model.types.Type
asArray, asDeclaration, asParameterizedType, asPrimitive, asType, asTypeVariable, asVoid, asWildcardType, isArray, isClass, isDeclaration, isParameterizedType, isPrimitive, isType, isTypeVariable, isVoid, isWildcardType
-
-
-
-
Method Detail
-
declaration
ClassInfo declaration()
Returns the declaration of this class type.- Returns:
- the declaration of this class type
-
kind
default Type.Kind kind()
Description copied from interface:TypeReturns the kind of this type.
-
-