Class Type.Builder<THIS extends Type.Builder<THIS>>

    • Constructor Detail

      • Builder

        protected Builder​(DotName name)
    • Method Detail

      • 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:
        Type.annotations()