Interface AnnotationElementBuilder
-
public interface AnnotationElementBuilder
Builder for Annotation instances
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnnotationElementBuilder
addArgument(String name, Consumer<TypedValueBuilder> builderCallback)
Add annotation argumentAnnotationElementBuilder
addArgument(String name, TypedValue value)
Add annotation argumentAnnotation
build()
Build a new Annotation instance
-
-
-
Method Detail
-
addArgument
AnnotationElementBuilder addArgument(String name, TypedValue value)
Add annotation argument- Parameters:
name
- the argument namevalue
- the argument value- Returns:
- this instance for chaining
-
addArgument
AnnotationElementBuilder addArgument(String name, Consumer<TypedValueBuilder> builderCallback)
Add annotation argument- Parameters:
name
- the argument namebuilderCallback
- the argument value customization callback- Returns:
- this instance for chaining
-
build
Annotation build()
Build a new Annotation instance- Returns:
- Annotation instance
-
-