Class Parameter.Builder
java.lang.Object
io.helidon.codegen.classmodel.Parameter.Builder
- All Implemented Interfaces:
Builder<Parameter.Builder, Parameter>, Supplier<Parameter>
- Enclosing class:
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).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 Parameterget()default Parameter.Builderidentity()Instance of this builder as the correct type.default Parameter.Builderupdate(Consumer<Parameter.Builder> consumer) Update the builder in a fluent API way.
-
Method Details
-
build
-
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- whether imports should be included- Returns:
- updated builder instance
-