Package org.jboss.jandex
Class ClassType.Builder
java.lang.Object
org.jboss.jandex.ClassType.Builder
- Enclosing class:
- ClassType
Convenient builder for
ClassType.- Since:
- 3.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<AnnotationInstance>protected final DotName -
Method Summary
Modifier and TypeMethodDescriptionaddAnnotation(AnnotationInstance annotation) Adds an annotation to the type being created by this builder.protected AnnotationInstance[]build()Returns the built class type.protected ClassType.Builderself()
-
Field Details
-
name
-
annotations
-
-
Method Details
-
build
Returns the built class type.- Returns:
- the built class type
-
self
-
annotationsArray
- Returns:
- the annotations array or
nullif no annotation was specified
-
addAnnotation
Adds an annotation to the type being created by this builder. Note that it becomes a type annotation.- Parameters:
annotation- the annotation instance; can be created usingAnnotationInstance.builder()- Returns:
- this builder
- See Also:
-