Interface AnnotationAttributeConfiguration.Builder
- Enclosing interface:
- AnnotationAttributeConfiguration
public static interface AnnotationAttributeConfiguration.Builder
-
Method Summary
Modifier and TypeMethodDescriptionallowedValues
(String... allowedValues) annotation
(String annotationName, AnnotationElement.AnnotationTarget... target) Starts the creation of a new annotation with the given name and return its builder to continue define it.Create a new attribute with the given name and return the builder to configure it.build()
defaultValue
(Object defaultValue) metadataCreator
(AnnotationMetadataCreator<?, ? extends AnnotatedDescriptor> annotationMetadataCreator) multiple
(boolean isMultiple) packageName
(String packageName) Sets the optional package nameDeprecated.repeatable
(String containingAnnotationName) The type.
-
Method Details
-
type
The type. Defaults to String if not explicitly set. -
multiple
-
defaultValue
-
allowedValues
-
metadataCreator
AnnotationAttributeConfiguration.Builder metadataCreator(AnnotationMetadataCreator<?, ? extends AnnotatedDescriptor> annotationMetadataCreator) -
repeatable
-
attribute
Create a new attribute with the given name and return the builder to configure it. -
packageName
Sets the optional package name -
parentBuilder
Deprecated.just callannotation(String, AnnotationElement.AnnotationTarget...)
directly- Returns:
- the parent builder in order to allow defining more annotations
-
annotation
AnnotationConfiguration.Builder annotation(String annotationName, AnnotationElement.AnnotationTarget... target) Starts the creation of a new annotation with the given name and return its builder to continue define it. -
build
Configuration build()
-
annotation(String, AnnotationElement.AnnotationTarget...)
directly