Package io.micronaut.sourcegen.model
Class AnnotationObjectDef.AnnotationMemberDefBuilder
java.lang.Object
io.micronaut.sourcegen.model.AbstractElementBuilder<AnnotationObjectDef.AnnotationMemberDefBuilder>
io.micronaut.sourcegen.model.AnnotationObjectDef.AnnotationMemberDefBuilder
- Enclosing class:
- AnnotationObjectDef
public static final class AnnotationObjectDef.AnnotationMemberDefBuilder
extends AbstractElementBuilder<AnnotationObjectDef.AnnotationMemberDefBuilder>
Builder for
AnnotationObjectDef.AnnotationMemberDef
.-
Field Summary
Fields inherited from class io.micronaut.sourcegen.model.AbstractElementBuilder
annotations, javadoc, modifiers, name, synthetic, thisInstance
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create the annotation member definition instance.withDefault
(ExpressionDef.Constant defaultValue) Set the default value for this annotation member.Methods inherited from class io.micronaut.sourcegen.model.AbstractElementBuilder
addAnnotation, addAnnotation, addAnnotation, addAnnotation, addAnnotations, addAnnotations, addJavadoc, addJavadoc, addModifiers, addModifiers, overrideModifiers, synthetic, synthetic
-
Method Details
-
withDefault
public AnnotationObjectDef.AnnotationMemberDefBuilder withDefault(ExpressionDef.Constant defaultValue) Set the default value for this annotation member.- Parameters:
defaultValue
- The default value- Returns:
- This builder
-
build
Create the annotation member definition instance.- Returns:
- The instance
-