Class GeneratedMethod.Builder
java.lang.Object
io.helidon.builder.codegen.GeneratedMethod.BuilderBase<GeneratedMethod.Builder, GeneratedMethod>
io.helidon.builder.codegen.GeneratedMethod.Builder
- All Implemented Interfaces:
Prototype.Builder<GeneratedMethod.Builder, GeneratedMethod>, Builder<GeneratedMethod.Builder, GeneratedMethod>, Supplier<GeneratedMethod>
- Enclosing interface:
GeneratedMethod
public static class GeneratedMethod.Builder
extends GeneratedMethod.BuilderBase<GeneratedMethod.Builder, GeneratedMethod>
implements Builder<GeneratedMethod.Builder, GeneratedMethod>
Fluent API builder for
GeneratedMethod.-
Nested Class Summary
Nested classes/interfaces inherited from class GeneratedMethod.BuilderBase
GeneratedMethod.BuilderBase.GeneratedMethodImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Methods inherited from class GeneratedMethod.BuilderBase
clearJavadoc, contentBuilder, contentBuilder, from, from, javadoc, javadoc, javadoc, javadoc, method, method, method, method, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionClear existing value of javadoc.Generator for the method content.contentBuilder(Consumer<ContentBuilder<?>> contentBuilder) Generator for the method content.from(GeneratedMethod prototype) Update this builder from an existing prototype instance.from(GeneratedMethod.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.javadoc()Javadoc for this method.Javadoc for this method.javadoc(Consumer<Javadoc.Builder> consumer) Javadoc for this method.Javadoc for this method.method()Definition of this method, including annotations (such asOverride).method(TypedElementInfo method) Definition of this method, including annotations (such asOverride).method(Consumer<TypedElementInfo.Builder> consumer) Definition of this method, including annotations (such asOverride).method(Supplier<? extends TypedElementInfo> supplier) Definition of this method, including annotations (such asOverride).protected voidHandles providers and decorators.toString()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 GeneratedMethodget()default GeneratedMethod.Builderidentity()Instance of this builder as the correct type.default GeneratedMethod.Builderupdate(Consumer<GeneratedMethod.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault GeneratedMethod.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<GeneratedMethod.Builder, GeneratedMethod>- 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<GeneratedMethod.Builder, GeneratedMethod>- Returns:
- instance of the built type
-