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.- Author:
- Jason T. Greene
-
-
Field Summary
Fields Modifier and Type Field Description static ClassType
OBJECT_TYPE
-
Fields inherited from class org.jboss.jandex.Type
EMPTY_ARRAY
-
-
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.Type.Kind
kind()
Returns the kind of Type this is.-
Methods inherited from class org.jboss.jandex.Type
annotation, annotations, asArrayType, asParameterizedType, asPrimitiveType, asTypeVariable, asUnresolvedTypeVariable, asVoidType, asWildcardType, create, equals, hasAnnotation, hashCode, name, toString
-
-
-
-
Field Detail
-
OBJECT_TYPE
public static final ClassType OBJECT_TYPE
-
-
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
-
-