Package org.jboss.jandex
Class ClassType
java.lang.Object
org.jboss.jandex.Type
org.jboss.jandex.ClassType
Represents a standard raw class name.
- Author:
- Jason T. Greene
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from class org.jboss.jandex.Type
EMPTY_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionCasts this type to aClassTypeand returns it if the kind isType.Kind.CLASS.static ClassTypeCreate an instance of a class type with givenname.kind()Returns the kind of Type this is.Methods inherited from class org.jboss.jandex.Type
annotation, annotations, annotationsWithRepeatable, asArrayType, asParameterizedType, asPrimitiveType, asTypeVariable, asTypeVariableReference, asUnresolvedTypeVariable, asVoidType, asWildcardType, create, createWithAnnotations, equals, hasAnnotation, hashCode, internEquals, internHashCode, name, toString
-
Field Details
-
OBJECT_TYPE
-
-
Method Details
-
create
Create an instance of a class type with givenname.Note that an inner class type enclosed in a parameterized type or in a type annotated with a type annotation is represented as
ParameterizedType, where the enclosing type is the owner of the parameterized type.- Parameters:
name- the name of this class type- Returns:
- the class type
- Since:
- 3.0.4
-
kind
Description copied from class:TypeReturns the kind of Type this is. -
asClassType
Description copied from class:TypeCasts this type to aClassTypeand returns it if the kind isType.Kind.CLASS. Throws an exception otherwise.- Overrides:
asClassTypein classType- Returns:
- a
ClassType
-