Class ClassType
- All Implemented Interfaces:
Descriptor
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 represented as the parameterized type's owner.
- Author:
- Jason T. Greene
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.jboss.jandex.Type
EMPTY_ARRAYFields inherited from interface org.jboss.jandex.Descriptor
NO_SUBSTITUTION -
Method Summary
Modifier and TypeMethodDescriptionCasts this type to aClassTypeand returns it if the kind isType.Kind.CLASS.static ClassType.BuilderCreate a builder of a class type for the given class.static ClassType.BuilderCreate a builder of a class type with the givenname.static ClassTypeCreate an instance of a class type for givenclazz.static ClassTypeCreate an instance of a class type with givenname.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, descriptor, equals, hasAnnotation, hashCode, name, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jboss.jandex.Descriptor
descriptor
-
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 represented as the parameterized type's owner.- Parameters:
name- the binary name of this class type- Returns:
- the class type
- Since:
- 3.0.4
-
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 represented as the parameterized type's owner.- Parameters:
name- the binary name of this class type- Returns:
- the class type
- Since:
- 3.1.0
-
create
Create an instance of a class type for givenclazz.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 represented as the parameterized type's owner.- Parameters:
clazz- the class- Returns:
- the class type
- Since:
- 3.1.0
-
builder
Create a builder of a class type with the givenname.- Parameters:
name- binary name of the class- Returns:
- the builder
- Since:
- 3.1.0
-
builder
Create a builder of a class type for the given class.- Parameters:
clazz- the class- Returns:
- the builder
- Since:
- 3.1.0
-
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
-