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

abstract static class Type.Builder<THIS extends Type.Builder<THIS>> extends Object
Base class for type builders.
Since:
3.1.0
  • Field Details

  • Constructor Details

    • Builder

      protected Builder(DotName name)
  • Method Details

    • self

      protected THIS self()
    • annotationsArray

      protected AnnotationInstance[] annotationsArray()
      Returns:
      the annotations array or null if no annotation was specified
    • addAnnotation

      public THIS addAnnotation(AnnotationInstance annotation)
      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 using AnnotationInstance.builder()
      Returns:
      this builder
      See Also: