Package org.jboss.jandex
Class ClassType
java.lang.Object
org.jboss.jandex.Type
org.jboss.jandex.ClassType
Represents a standard raw class name.
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from class org.jboss.jandex.Type
EMPTY_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCasts this type to aClassType
and returns it if the kind isType.Kind.CLASS
Throws an exception otherwise.(package private) Type
copyType
(AnnotationInstance[] newAnnotations) kind()
Returns the kind of Type this is.(package private) ParameterizedType
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 Details
-
OBJECT_TYPE
-
-
Constructor Details
-
ClassType
ClassType(DotName name) -
ClassType
ClassType(DotName name, AnnotationInstance[] annotations)
-
-
Method Details
-
kind
Description copied from class:Type
Returns the kind of Type this is. -
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
-
toParameterizedType
ParameterizedType toParameterizedType()
-