java.lang.Object
io.helidon.codegen.classmodel.Parameter.Builder
- All Implemented Interfaces:
Builder<Parameter.Builder,,Parameter> Supplier<Parameter>
- Enclosing class:
Parameter
Fluent API builder for
Parameter.-
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.vararg(boolean vararg) Whether this parameter is a vararg (zero to n repetitions, declared asObject... objects).
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Returns:
- instance of the built type
-
vararg
Whether this parameter is a vararg (zero to n repetitions, declared asObject... objects). Note that vararg parameter can be only one per method, and it MUST be the last argument defined.- Parameters:
vararg- whether this is a vararg parameter- Returns:
- updated builder instance
-
description
-
type
-
type
-
type
-
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-- Returns:
-