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, annotationArray, annotations, appendAnnotations, asArrayType, asParameterizedType, asPrimitiveType, asTypeVariable, asUnresolvedTypeVariable, asVoidType, asWildcardType, create, equals, hashCode, name, toString, toStringpublic static final ClassType OBJECT_TYPE
ClassType(DotName name)
ClassType(DotName name, AnnotationInstance[] annotations)
public ClassType asClassType()
TypeClassType and returns it if the kind is Type.Kind.CLASS
Throws an exception otherwise.asClassType in class TypeClassTypeType copyType(AnnotationInstance[] newAnnotations)
ParameterizedType toParameterizedType()