Module io.helidon.builder.codegen
Package io.helidon.builder.codegen
Class OptionBuilder.BuilderBase<BUILDER extends OptionBuilder.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OptionBuilder>
java.lang.Object
io.helidon.builder.codegen.OptionBuilder.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
OptionBuilder.Builder
- Enclosing interface:
OptionBuilder
public abstract static class OptionBuilder.BuilderBase<BUILDER extends OptionBuilder.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OptionBuilder>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
OptionBuilder.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionName of the static builder method, or<init>to identify a constructor should be used.builderMethodName(String builderMethodName) Name of the static builder method, or<init>to identify a constructor should be used.Type of the class declaring abuilderMethodName()used to get an instance of the builder to send to the generated setter with consumer.builderMethodType(TypeName builderMethodType) Type of the class declaring abuilderMethodName()used to get an instance of the builder to send to the generated setter with consumer.builderMethodType(Consumer<TypeName.Builder> consumer) Type of the class declaring abuilderMethodName()used to get an instance of the builder to send to the generated setter with consumer.builderMethodType(Supplier<? extends TypeName> supplier) Type of the class declaring abuilderMethodName()used to get an instance of the builder to send to the generated setter with consumer.Type of the builder.builderType(TypeName builderType) Type of the builder.builderType(Consumer<TypeName.Builder> consumer) Type of the builder.builderType(Supplier<? extends TypeName> supplier) Type of the builder.Name of the build method (buildorbuildPrototype).buildMethodName(String buildMethodName) Name of the build method (buildorbuildPrototype).from(OptionBuilder prototype) Update this builder from an existing prototype instance.from(OptionBuilder.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
builderMethodName
Name of the static builder method, or<init>to identify a constructor should be used. If a method name is defined, it is expected to be on the type of the option. If constructor is defined, it is expected to be an accessible constructor on thebuilderType().- Parameters:
builderMethodName- name of the method- Returns:
- updated builder instance
- See Also:
-
builderType
Type of the builder.- Parameters:
builderType- type of the builder- Returns:
- updated builder instance
- See Also:
-
builderType
Type of the builder.- Parameters:
consumer- consumer of builder of type of the builder- Returns:
- updated builder instance
- See Also:
-
builderType
Type of the builder.- Parameters:
supplier- supplier of type of the builder- Returns:
- updated builder instance
- See Also:
-
builderMethodType
Type of the class declaring abuilderMethodName()used to get an instance of the builder to send to the generated setter with consumer.- Parameters:
builderMethodType- type declaring the builder method- Returns:
- updated builder instance
- See Also:
-
builderMethodType
Type of the class declaring abuilderMethodName()used to get an instance of the builder to send to the generated setter with consumer.- Parameters:
consumer- consumer of builder of type declaring the builder method- Returns:
- updated builder instance
- See Also:
-
builderMethodType
Type of the class declaring abuilderMethodName()used to get an instance of the builder to send to the generated setter with consumer.- Parameters:
supplier- supplier of type declaring the builder method- Returns:
- updated builder instance
- See Also:
-
buildMethodName
Name of the build method (buildorbuildPrototype).- Parameters:
buildMethodName- builder build method name- Returns:
- updated builder instance
- See Also:
-
builderMethodName
Name of the static builder method, or<init>to identify a constructor should be used. If a method name is defined, it is expected to be on the type of the option. If constructor is defined, it is expected to be an accessible constructor on thebuilderType().- Returns:
- name of the method
-
builderType
Type of the builder.- Returns:
- type of the builder
-
builderMethodType
Type of the class declaring abuilderMethodName()used to get an instance of the builder to send to the generated setter with consumer.- Returns:
- type declaring the builder method
-
buildMethodName
Name of the build method (buildorbuildPrototype).- Returns:
- builder build method name
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-