Package org.jboss.jandex
Class ClassType
- java.lang.Object
-
- org.jboss.jandex.Type
-
- org.jboss.jandex.ClassType
-
public final class ClassType extends Type
Represents a standard raw class name.
-
-
Field Summary
Fields Modifier and Type Field Description static ClassTypeOBJECT_TYPE-
Fields inherited from class org.jboss.jandex.Type
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description ClassType(DotName name)ClassType(DotName name, AnnotationInstance[] annotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassTypeasClassType()Casts this type to aClassTypeand returns it if the kind isType.Kind.CLASSThrows an exception otherwise.(package private) TypecopyType(AnnotationInstance[] newAnnotations)Type.Kindkind()Returns the kind of Type this is.(package private) ParameterizedTypetoParameterizedType()-
Methods inherited from class org.jboss.jandex.Type
addAnnotation, annotation, annotationArray, annotations, appendAnnotations, asArrayType, asParameterizedType, asPrimitiveType, asTypeVariable, asUnresolvedTypeVariable, asVoidType, asWildcardType, create, equals, hasAnnotation, hashCode, name, toString, toString
-
-
-
-
Field Detail
-
OBJECT_TYPE
public static final ClassType OBJECT_TYPE
-
-
Constructor Detail
-
ClassType
ClassType(DotName name)
-
ClassType
ClassType(DotName name, AnnotationInstance[] annotations)
-
-
Method Detail
-
asClassType
public ClassType asClassType()
Description copied from class:TypeCasts this type to aClassTypeand returns it if the kind isType.Kind.CLASSThrows an exception otherwise.- Overrides:
asClassTypein classType- Returns:
- a
ClassType
-
copyType
Type copyType(AnnotationInstance[] newAnnotations)
-
toParameterizedType
ParameterizedType toParameterizedType()
-
-