All Known Subinterfaces:
EnumBuilder, GeneratedPropertyBuilder, GeneratedTOBuilder, GeneratedTypeBuilder, GeneratedTypeBuilderBase<T>, MethodSignatureBuilder, TypeMemberBuilder<T>

@Beta public interface AnnotableTypeBuilder
Common interface for java type builders which allow attaching annotations to them.
  • Method Details

    • addAnnotation

      AnnotationTypeBuilder addAnnotation(JavaTypeName identifier)
      The method creates new AnnotationTypeBuilder containing specified package name an annotation name.
      Parameters:
      identifier - JavaTypeName of the annotation
      Returns:
      a new instance of Annotation Type Builder.
    • addAnnotation

      default AnnotationTypeBuilder addAnnotation(String packageName, String simpleName)
      The method creates new AnnotationTypeBuilder containing specified package name an annotation name. Neither the package name or annotation name can contain null references. In case that any of parameters contains null the method SHOULD thrown IllegalArgumentException
      Parameters:
      packageName - Package Name of Annotation Type
      simpleName - Name of Annotation Type
      Returns:
      new instance of Annotation Type Builder.
      Throws:
      NullPointerException - if any of the arguments are null
      IllegalArgumentException - if any of the arguments is an empty string