public final class ClassType extends Type
Modifier and Type | Field and Description |
---|---|
static ClassType |
OBJECT_TYPE |
EMPTY_ARRAY
Constructor and Description |
---|
ClassType(DotName name) |
ClassType(DotName name,
AnnotationInstance[] annotations) |
Modifier and Type | Method and Description |
---|---|
ClassType |
asClassType()
Casts this type to a
ClassType and returns it if the kind is Type.Kind.CLASS
Throws an exception otherwise. |
(package private) Type |
copyType(AnnotationInstance[] newAnnotations) |
Type.Kind |
kind()
Returns the kind of Type this is.
|
(package private) ParameterizedType |
toParameterizedType() |
addAnnotation, annotation, annotationArray, annotations, appendAnnotations, asArrayType, asParameterizedType, asPrimitiveType, asTypeVariable, asUnresolvedTypeVariable, asVoidType, asWildcardType, create, equals, hasAnnotation, hashCode, name, toString, toString
public static final ClassType OBJECT_TYPE
ClassType(DotName name)
ClassType(DotName name, AnnotationInstance[] annotations)
public ClassType asClassType()
Type
ClassType
and returns it if the kind is Type.Kind.CLASS
Throws an exception otherwise.asClassType
in class Type
ClassType
Type copyType(AnnotationInstance[] newAnnotations)
ParameterizedType toParameterizedType()