Module io.helidon.builder.codegen
Package io.helidon.builder.codegen
Class PrototypeConstant.BuilderBase<BUILDER extends PrototypeConstant.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends PrototypeConstant>
java.lang.Object
io.helidon.builder.codegen.PrototypeConstant.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:
PrototypeConstant.Builder
- Enclosing interface:
PrototypeConstant
public abstract static class PrototypeConstant.BuilderBase<BUILDER extends PrototypeConstant.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends PrototypeConstant>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
PrototypeConstant.-
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 TypeMethodDescriptioncontent()Consumer of the content to generate the constant.content(Consumer<ContentBuilder<?>> content) Consumer of the content to generate the constant.from(PrototypeConstant prototype) Update this builder from an existing prototype instance.from(PrototypeConstant.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.javadoc()Javadoc for the constant.Javadoc for the constant.javadoc(Consumer<Javadoc.Builder> consumer) Javadoc for the constant.Javadoc for the constant.name()Name of the constant.Name of the constant.protected voidHandles providers and decorators.toString()type()Type of the constant.Type of the constant.type(Consumer<TypeName.Builder> consumer) Type of the constant.Type of the constant.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
-
name
Name of the constant.- Parameters:
name- field name- Returns:
- updated builder instance
- See Also:
-
type
Type of the constant.- Parameters:
type- field type- Returns:
- updated builder instance
- See Also:
-
type
Type of the constant.- Parameters:
consumer- consumer of builder of field type- Returns:
- updated builder instance
- See Also:
-
type
Type of the constant.- Parameters:
supplier- supplier of field type- Returns:
- updated builder instance
- See Also:
-
javadoc
Javadoc for the constant.- Parameters:
javadoc- javadoc- Returns:
- updated builder instance
- See Also:
-
javadoc
Javadoc for the constant.- Parameters:
consumer- consumer of builder of javadoc- Returns:
- updated builder instance
- See Also:
-
javadoc
Javadoc for the constant.- Parameters:
supplier- supplier of javadoc- Returns:
- updated builder instance
- See Also:
-
content
Consumer of the content to generate the constant.- Parameters:
content- content builder consumer to generate the constant value- Returns:
- updated builder instance
- See Also:
-
name
Name of the constant.- Returns:
- field name
-
type
Type of the constant.- Returns:
- field type
-
javadoc
Javadoc for the constant.- Returns:
- javadoc
-
content
Consumer of the content to generate the constant.- Returns:
- content builder consumer to generate the constant value
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-