Class PrototypeConstant.Builder
java.lang.Object
io.helidon.builder.codegen.PrototypeConstant.BuilderBase<PrototypeConstant.Builder, PrototypeConstant>
io.helidon.builder.codegen.PrototypeConstant.Builder
- All Implemented Interfaces:
Prototype.Builder<PrototypeConstant.Builder, PrototypeConstant>, Builder<PrototypeConstant.Builder, PrototypeConstant>, Supplier<PrototypeConstant>
- Enclosing interface:
PrototypeConstant
public static class PrototypeConstant.Builder
extends PrototypeConstant.BuilderBase<PrototypeConstant.Builder, PrototypeConstant>
implements Builder<PrototypeConstant.Builder, PrototypeConstant>
Fluent API builder for
PrototypeConstant.-
Nested Class Summary
Nested classes/interfaces inherited from class PrototypeConstant.BuilderBase
PrototypeConstant.BuilderBase.PrototypeConstantImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Methods inherited from class PrototypeConstant.BuilderBase
content, content, from, from, javadoc, javadoc, javadoc, javadoc, name, name, preBuildPrototype, toString, type, type, type, type, validatePrototypeModifier 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault PrototypeConstantget()default PrototypeConstant.Builderidentity()Instance of this builder as the correct type.default PrototypeConstant.Builderupdate(Consumer<PrototypeConstant.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault PrototypeConstant.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Description copied from interface:Prototype.BuilderCreate an instance of thePrototype. This method is available on all generated builders forPrototype.Blueprint.Calling this method may update the builder from providers and decorators, so repeated calls may have side effects such as repeated provider discovery.
- Specified by:
buildPrototypein interfacePrototype.Builder<PrototypeConstant.Builder, PrototypeConstant>- Returns:
- an instance of the setup object created from this builder
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<PrototypeConstant.Builder, PrototypeConstant>- Returns:
- instance of the built type
-