Package io.helidon.codegen.classmodel
Class Constructor.Builder
java.lang.Object
io.helidon.codegen.classmodel.Executable.Builder<Constructor.Builder,Constructor>
io.helidon.codegen.classmodel.Constructor.Builder
- All Implemented Interfaces:
ContentBuilder<Constructor.Builder>
,Builder<Constructor.Builder,
,Constructor> Supplier<Constructor>
- Enclosing class:
Constructor
public static final class Constructor.Builder
extends Executable.Builder<Constructor.Builder,Constructor>
Fluent API builder for
Constructor
.-
Method Summary
Modifier and TypeMethodDescriptionaddAnnotation
(Annotation annotation) Add new annotation to the component.addAnnotation
(Annotation.Builder builder) Add new annotation to the component.addAnnotation
(Annotation annotation) Add new annotation to the component.addAnnotation
(Consumer<Annotation.Builder> consumer) Add new annotation to the component.addDescriptionLine
(String line) build()
Build the instance from this builder.description
(String description) description
(List<String> description) includeImport
(boolean includeImport) Whether to include import type information among the imports.Methods inherited from class io.helidon.codegen.classmodel.Executable.Builder
accessModifier, addContent, addContent, addJavadocTag, addParameter, addParameter, addParameter, addThrows, addThrows, addThrows, addThrows, addTypeToContent, clearContent, content, decreaseContentPadding, generateJavadoc, increaseContentPadding, javadoc, padContent, padContent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.codegen.classmodel.ContentBuilder
addContent, addContentCreate, addContentCreate, addContentCreate, addContentLine, content
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Returns:
- instance of the built type
-
description
-
description
-
addDescriptionLine
-
addAnnotation
Add new annotation to the component.- Parameters:
annotation
- annotation instance- Returns:
- updated builder instance
-
addAnnotation
Add new annotation to the component.- Parameters:
consumer
- annotation builder consumer- Returns:
- updated builder instance
-
addAnnotation
Add new annotation to the component.- Parameters:
builder
- annotation builder- Returns:
- updated builder instance
-
addAnnotation
Add new annotation to the component.- Parameters:
annotation
- annotation instance- Returns:
- updated builder instance
-
name
-
includeImport
Whether to include import type information among the imports.- Parameters:
includeImport
- whether imports should be included- Returns:
- updated builder instance
-