Class Constructor.Builder
java.lang.Object
io.helidon.common.processor.classmodel.Constructor.Builder
- All Implemented Interfaces:
Builder<Constructor.Builder,,Constructor> Supplier<Constructor>
- Enclosing class:
Constructor
Fluent API builder for
Constructor.-
Method Summary
Modifier and TypeMethodDescriptionaccessModifier(AccessModifier accessModifier) Add text line to the content.addAnnotation(Annotation annotation) Add new annotation to the component.addAnnotation(Annotation.Builder builder) Add new annotation to the component.addAnnotation(Consumer<Annotation.Builder> consumer) Add new annotation to the component.addDescriptionLine(String line) addJavadocTag(String tag, String description) Add text line to the content.addParameter(Parameter parameter) Add new method parameter.addParameter(Consumer<Parameter.Builder> consumer) Add new method parameter.addParameter(Supplier<Parameter> supplier) Add new method parameter.addThrows(Consumer<Throws.Builder> consumer) build()Build the instance from this builder.Clears created content.Set new content.Set new content.Method for manual padding decrement.description(String description) description(List<String> description) generateJavadoc(boolean generateJavadoc) includeImport(boolean includeImport) Whether to include import type information among the imports.Method for manual padding increment.padding()Adds single padding.padding(int repetition) Adds padding with number of repetitions.Obtained type is enclosed betweenClassModel.TYPE_TOKENtokens.Obtained type is enclosed betweenClassModel.TYPE_TOKENtokens.Obtained fully qualified type name is enclosed betweenClassModel.TYPE_TOKENtokens.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Returns:
- instance of the built type
-
javadoc
-
addJavadocTag
-
accessModifier
-
addLine
Add text line to the content. New line character is added after this line.- Parameters:
line- line to add- Returns:
- updated builder instance
-
add
Add text line to the content. New line character is not added after this line, so all newly added text will be appended to the same line.- Parameters:
line- line to add- Returns:
- updated builder instance
-
clearContent
Clears created content.- Returns:
- updated builder instance
-
typeName
Obtained fully qualified type name is enclosed betweenClassModel.TYPE_TOKENtokens. Class names in such a format are later recognized as class names for import handling.- Parameters:
fqClassName- fully qualified class name to import- Returns:
- updated builder instance
-
typeName
Obtained type is enclosed betweenClassModel.TYPE_TOKENtokens. Class names in such a format are later recognized as class names for import handling.- Parameters:
type- type to import- Returns:
- updated builder instance
-
typeName
Obtained type is enclosed betweenClassModel.TYPE_TOKENtokens. Class names in such a format are later recognized as class names for import handling.- Parameters:
typeName- type name to import- Returns:
- updated builder instance
-
padding
Adds single padding. This extra padding is added only once. If more permanent padding increment is needed use {increasePadding()}.- Returns:
- updated builder instance
-
padding
Adds padding with number of repetitions. This extra padding is added only once. If more permanent padding increment is needed use {increasePadding()}.- Parameters:
repetition- number of padding repetitions- Returns:
- updated builder instance
-
increasePadding
Method for manual padding increment. This method will affect padding of the later added content.- Returns:
- updated builder instance
-
decreasePadding
Method for manual padding decrement. This method will affect padding of the later added content.- Returns:
- updated builder instance
-
content
Set new content. This method replaces previously created content in this builder.- Parameters:
content- content to be set- Returns:
- updated builder instance
-
content
Set new content. This method replaces previously created content in this builder.- Parameters:
content- content to be set- Returns:
- updated builder instance
-
addParameter
Add new method parameter.- Parameters:
consumer- method builder consumer- Returns:
- updated builder instance
-
addParameter
Add new method parameter.- Parameters:
parameter- method parameter- Returns:
- updated builder instance
-
addParameter
Add new method parameter.- Parameters:
supplier- method parameter supplier- Returns:
- updated builder instance
-
addThrows
-
addThrows
-
addThrows
-
addThrows
-
generateJavadoc
-
description
-
description
-
addDescriptionLine
-
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-- Returns:
-