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 ClassType
OBJECT_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 ClassType
asClassType()
Casts this type to aClassType
and returns it if the kind isType.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()
-
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:Type
Casts this type to aClassType
and returns it if the kind isType.Kind.CLASS
Throws an exception otherwise.- Overrides:
asClassType
in classType
- Returns:
- a
ClassType
-
copyType
Type copyType(AnnotationInstance[] newAnnotations)
-
toParameterizedType
ParameterizedType toParameterizedType()
-
-