Class Annotation.Builder
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, AnnotationProperty property) 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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault Annotationget()default Annotation.Builderidentity()Instance of this builder as the correct type.default Annotation.Builderupdate(Consumer<Annotation.Builder> consumer) Update the builder in a fluent API way.
-
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:
name- annotation parameter nameproperty- annotation property- 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- whether imports should be included- Returns:
- updated builder instance
-