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 ClassTypeOBJECT_TYPE-
Fields inherited from class org.jboss.jandex.Type
EMPTY_ARRAY
-
-
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.Type.Kindkind()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:TypeCasts this type to aClassTypeand returns it if the kind isType.Kind.CLASSThrows an exception otherwise.- Overrides:
asClassTypein classType- Returns:
- a
ClassType
-
-