Class ClassType.Builder

java.lang.Object
org.jboss.jandex.ClassType.Builder
Enclosing class:
ClassType

public static final class ClassType.Builder extends Object
Convenient builder for ClassType.
Since:
3.1.0
  • Field Details

  • Method Details

    • build

      public ClassType build()
      Returns the built class type.
      Returns:
      the built class type
    • self

      protected ClassType.Builder self()
    • annotationsArray

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

      public ClassType.Builder 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: