Package org.jboss.jandex
Class Type.Builder<THIS extends Type.Builder<THIS>>
java.lang.Object
org.jboss.jandex.Type.Builder<THIS>
- Type Parameters:
THIS- self type
- Direct Known Subclasses:
ArrayType.Builder,ClassType.Builder,ParameterizedType.Builder,TypeVariable.Builder,WildcardType.Builder
- Enclosing class:
Type
Base class for type builders.
- Since:
- 3.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<AnnotationInstance> protected final DotName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAnnotation(AnnotationInstance annotation) Adds an annotation to the type being created by this builder.protected AnnotationInstance[]protected THISself()
-
Field Details
-
name
-
annotations
-
-
Constructor Details
-
Builder
-
-
Method Details
-
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:
-