Module io.helidon.builder.codegen
Package io.helidon.builder.codegen
Class GeneratedMethod.BuilderBase<BUILDER extends GeneratedMethod.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends GeneratedMethod>
java.lang.Object
io.helidon.builder.codegen.GeneratedMethod.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:
GeneratedMethod.Builder
- Enclosing interface:
GeneratedMethod
public abstract static class GeneratedMethod.BuilderBase<BUILDER extends GeneratedMethod.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends GeneratedMethod>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
GeneratedMethod.-
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 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 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
-
method
Definition of this method, including annotations (such asOverride).- Parameters:
method- method definition- Returns:
- updated builder instance
- See Also:
-
method
Definition of this method, including annotations (such asOverride).- Parameters:
consumer- consumer of builder of method definition- Returns:
- updated builder instance
- See Also:
-
method
Definition of this method, including annotations (such asOverride).- Parameters:
supplier- supplier of method definition- Returns:
- updated builder instance
- See Also:
-
contentBuilder
Generator for the method content.- Parameters:
contentBuilder- content builder consumer- Returns:
- updated builder instance
- See Also:
-
clearJavadoc
Clear existing value of javadoc.- Returns:
- updated builder instance
- See Also:
-
javadoc
Javadoc for this method. We intentionally ignore documentation onmethod(), as it may be complicated to update it.If not configured, no javadoc will be generated (useful for methods that override documented interface methods).
- Parameters:
javadoc- javadoc for this method if defined- Returns:
- updated builder instance
- See Also:
-
javadoc
Javadoc for this method. We intentionally ignore documentation onmethod(), as it may be complicated to update it.If not configured, no javadoc will be generated (useful for methods that override documented interface methods).
- Parameters:
consumer- consumer of builder of javadoc for this method if defined- Returns:
- updated builder instance
- See Also:
-
javadoc
Javadoc for this method. We intentionally ignore documentation onmethod(), as it may be complicated to update it.If not configured, no javadoc will be generated (useful for methods that override documented interface methods).
- Parameters:
supplier- supplier of javadoc for this method if defined- Returns:
- updated builder instance
- See Also:
-
method
Definition of this method, including annotations (such asOverride).- Returns:
- method definition
-
contentBuilder
Generator for the method content.- Returns:
- content builder consumer
-
javadoc
Javadoc for this method. We intentionally ignore documentation onmethod(), as it may be complicated to update it.If not configured, no javadoc will be generated (useful for methods that override documented interface methods).
- Returns:
- javadoc for this method if defined
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-