Interface AnnotableTypeBuilder
- 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 Summary
Modifier and TypeMethodDescriptiondefault AnnotationTypeBuilderaddAnnotation(String packageName, String simpleName) The method creates newAnnotationTypeBuildercontaining specified package name an annotation name.addAnnotation(JavaTypeName identifier) The method creates newAnnotationTypeBuildercontaining specified package name an annotation name.
-
Method Details
-
addAnnotation
The method creates newAnnotationTypeBuildercontaining specified package name an annotation name.- Parameters:
identifier- JavaTypeName of the annotation- Returns:
- a new instance of Annotation Type Builder.
-
addAnnotation
The method creates newAnnotationTypeBuildercontaining specified package name an annotation name. Neither the package name or annotation name can containnullreferences. In case that any of parameters containsnullthe method SHOULD thrownIllegalArgumentException- Parameters:
packageName- Package Name of Annotation TypesimpleName- Name of Annotation Type- Returns:
newinstance of Annotation Type Builder.- Throws:
NullPointerException- if any of the arguments are nullIllegalArgumentException- if any of the arguments is an empty string
-