java.lang.Object
io.helidon.codegen.classmodel.Annotation.Builder
- All Implemented Interfaces:
Builder<Annotation.Builder,,Annotation> Supplier<Annotation>
- Enclosing class:
Annotation
Fluent API builder for
Annotation.-
Method Summary
Modifier and TypeMethodDescriptionaddParameter(AnnotationParameter parameter) Adds annotation parameter.addParameter(AnnotationParameter.Builder builder) Adds annotation parameter.addParameter(String name, Object value) Adds annotation parameter.addParameter(Consumer<AnnotationParameter.Builder> consumer) Adds annotation parameter.build()Build the instance from this builder.includeImport(boolean includeImport) Whether to include import type information among the imports.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Returns:
- instance of the built type
-
type
-
type
-
type
-
addParameter
Adds annotation parameter.- Parameters:
name- annotation parameter namevalue- parameter value- Returns:
- updated builder instance
-
addParameter
Adds annotation parameter.- Parameters:
consumer- annotation parameter builder consumer- Returns:
- updated builder instance
-
addParameter
Adds annotation parameter.- Parameters:
builder- annotation parameter builder- Returns:
- updated builder instance
-
addParameter
Adds annotation parameter.- Parameters:
parameter- annotation parameter- Returns:
- updated builder instance
-
includeImport
Whether to include import type information among the imports.- Parameters:
includeImport-- Returns:
-