Class OptionInfo.Builder
java.lang.Object
io.helidon.builder.codegen.OptionInfo.BuilderBase<OptionInfo.Builder, OptionInfo>
io.helidon.builder.codegen.OptionInfo.Builder
- All Implemented Interfaces:
Prototype.Builder<OptionInfo.Builder, OptionInfo>, Builder<OptionInfo.Builder, OptionInfo>, Supplier<OptionInfo>
- Enclosing interface:
OptionInfo
public static class OptionInfo.Builder
extends OptionInfo.BuilderBase<OptionInfo.Builder, OptionInfo>
implements Builder<OptionInfo.Builder, OptionInfo>
Fluent API builder for
OptionInfo.-
Nested Class Summary
Nested classes/interfaces inherited from class OptionInfo.BuilderBase
OptionInfo.BuilderBase.OptionInfoImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Methods inherited from class OptionInfo.BuilderBase
accessModifier, accessModifier, addAllowedValue, addAllowedValue, addAllowedValues, addAnnotation, addAnnotation, addAnnotations, addInheritedAnnotation, addInheritedAnnotation, addInheritedAnnotations, addQualifier, addQualifier, addQualifiers, allowedValues, allowedValues, annotations, annotations, builderInfo, builderInfo, builderInfo, builderInfo, builderOptionOnly, builderOptionOnly, clearAllowedValues, clearAnnotations, clearBuilderInfo, clearConfigured, clearDeclaringType, clearDecorator, clearDefaultValue, clearDeprecation, clearDescription, clearInheritedAnnotations, clearInterfaceMethod, clearParamDescription, clearPrototypedBy, clearProvider, clearQualifiers, clearRuntimeType, clearSingular, confidential, confidential, configured, configured, configured, configured, declaredType, declaredType, declaredType, declaredType, declaringType, declaringType, declaringType, declaringType, decorator, decorator, decorator, decorator, defaultValue, defaultValue, deprecation, deprecation, deprecation, deprecation, description, description, from, from, getterName, getterName, includeInEqualsAndHashCode, includeInEqualsAndHashCode, includeInToString, includeInToString, inheritedAnnotations, inheritedAnnotations, interfaceMethod, interfaceMethod, interfaceMethod, interfaceMethod, name, name, paramDescription, paramDescription, preBuildPrototype, prototypedBy, prototypedBy, prototypedBy, prototypedBy, provider, provider, provider, provider, qualifiers, qualifiers, registryService, registryService, required, required, runtimeType, runtimeType, runtimeType, runtimeType, sameGeneric, sameGeneric, setterName, setterName, singular, singular, singular, singular, toString, validatePrototypeModifier and TypeMethodDescriptionAccess modifier of generated setter methods on builder.accessModifier(AccessModifier accessModifier) Access modifier of generated setter methods on builder.addAllowedValue(OptionAllowedValue allowedValue) List of allowed values for this option.addAllowedValue(Consumer<OptionAllowedValue.Builder> consumer) List of allowed values for this option.addAllowedValues(List<? extends OptionAllowedValue> allowedValues) List of allowed values for this option.addAnnotation(Annotation annotation) Annotations option.addAnnotation(Consumer<Annotation.Builder> consumer) Annotations option.addAnnotations(List<? extends Annotation> annotations) Annotations option.addInheritedAnnotation(Annotation inheritedAnnotation) InheritedAnnotations option.addInheritedAnnotation(Consumer<Annotation.Builder> consumer) InheritedAnnotations option.addInheritedAnnotations(List<? extends Annotation> inheritedAnnotations) InheritedAnnotations option.addQualifier(Annotation qualifier) List of qualifiers for this option.addQualifier(Consumer<Annotation.Builder> consumer) List of qualifiers for this option.addQualifiers(List<? extends Annotation> qualifiers) List of qualifiers for this option.List of allowed values for this option.allowedValues(List<? extends OptionAllowedValue> allowedValues) List of allowed values for this option.Annotations option.annotations(List<? extends Annotation> annotations) Annotations option.If the option has a builder, return its information.builderInfo(OptionBuilder builderInfo) If the option has a builder, return its information.builderInfo(Consumer<OptionBuilder.Builder> consumer) If the option has a builder, return its information.builderInfo(Supplier<? extends OptionBuilder> supplier) If the option has a builder, return its information.booleanSet totrueif this option is only available on the builder.builderOptionOnly(boolean builderOptionOnly) Set totrueif this option is only available on the builder.Clear all allowedValues.Clear all annotations.Clear existing value of builderInfo.Clear existing value of configured.Clear existing value of declaringType.Clear existing value of decorator.Clear existing value of defaultValue.Clear existing value of deprecation.Clear existing value of description.Clear all inheritedAnnotations.Clear existing value of interfaceMethod.Clear existing value of paramDescription.Clear existing value of prototypedBy.Clear existing value of provider.Clear all qualifiers.Clear existing value of runtimeType.Clear existing value of singular.booleanWhether this option is confidential (i.e.confidential(boolean confidential) Whether this option is confidential (i.e.Details about configurability of this option.configured(OptionConfigured configured) Details about configurability of this option.configured(Consumer<OptionConfigured.Builder> consumer) Details about configurability of this option.configured(Supplier<? extends OptionConfigured> supplier) Details about configurability of this option.The return type of the blueprint method, or the type expected in getter of the option.declaredType(TypeName declaredType) The return type of the blueprint method, or the type expected in getter of the option.declaredType(Consumer<TypeName.Builder> consumer) The return type of the blueprint method, or the type expected in getter of the option.declaredType(Supplier<? extends TypeName> supplier) The return type of the blueprint method, or the type expected in getter of the option.Type that declares this option.declaringType(TypeInfo declaringType) Type that declares this option.declaringType(Consumer<TypeInfo.Builder> consumer) Type that declares this option.declaringType(Supplier<? extends TypeInfo> supplier) Type that declares this option.Option decorator type.Option decorator type.decorator(Consumer<TypeName.Builder> consumer) Option decorator type.Option decorator type.Default value for this option, a consumer of the field content builder.defaultValue(Consumer<ContentBuilder<?>> defaultValue) Default value for this option, a consumer of the field content builder.Deprecation details.deprecation(OptionDeprecation deprecation) Deprecation details.deprecation(Consumer<OptionDeprecation.Builder> consumer) Deprecation details.deprecation(Supplier<? extends OptionDeprecation> supplier) Deprecation details.Description of this option, used in Javadoc as the main text if defined.description(String description) Description of this option, used in Javadoc as the main text if defined.from(OptionInfo prototype) Update this builder from an existing prototype instance.from(OptionInfo.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Name of the getter methods.getterName(String getterName) Name of the getter methods.booleanWhether to include this option in generatedObject.equals(Object)andObject.hashCode()methods.includeInEqualsAndHashCode(boolean includeInEqualsAndHashCode) Whether to include this option in generatedObject.equals(Object)andObject.hashCode()methods.booleanWhether to include this option in generatedObject.toString()method.includeInToString(boolean includeInToString) Whether to include this option in generatedObject.toString()method.InheritedAnnotations option.inheritedAnnotations(List<? extends Annotation> inheritedAnnotations) InheritedAnnotations option.Blueprint method if created from blueprint, or interface method if inherited from non-blueprint interface.interfaceMethod(TypedElementInfo interfaceMethod) Blueprint method if created from blueprint, or interface method if inherited from non-blueprint interface.interfaceMethod(Consumer<TypedElementInfo.Builder> consumer) Blueprint method if created from blueprint, or interface method if inherited from non-blueprint interface.interfaceMethod(Supplier<? extends TypedElementInfo> supplier) Blueprint method if created from blueprint, or interface method if inherited from non-blueprint interface.name()Option name.Option name.Parameter/return type description, used in Javadoc as the param/return description.paramDescription(String paramDescription) Parameter/return type description, used in Javadoc as the param/return description.protected voidHandles providers and decorators.A prototype that can build this option type.prototypedBy(TypeName prototypedBy) A prototype that can build this option type.prototypedBy(Consumer<TypeName.Builder> consumer) A prototype that can build this option type.prototypedBy(Supplier<? extends TypeName> supplier) A prototype that can build this option type.provider()Provider details.provider(OptionProvider provider) Provider details.provider(Consumer<OptionProvider.Builder> consumer) Provider details.provider(Supplier<? extends OptionProvider> supplier) Provider details.List of qualifiers for this option.qualifiers(List<? extends Annotation> qualifiers) List of qualifiers for this option.booleanWhether this option should be loaded fromServiceRegistry.registryService(boolean registryService) Whether this option should be loaded fromServiceRegistry.booleanrequired()Whether this is a required option.required(boolean required) Whether this is a required option.Custom runtime type factory method.runtimeType(RuntimeTypeInfo runtimeType) Custom runtime type factory method.runtimeType(Consumer<RuntimeTypeInfo.Builder> consumer) Custom runtime type factory method.runtimeType(Supplier<? extends RuntimeTypeInfo> supplier) Custom runtime type factory method.booleanWhether thisMapoption is expected to have the same generic type for key and value.sameGeneric(boolean sameGeneric) Whether thisMapoption is expected to have the same generic type for key and value.Name of the setter method(s).setterName(String setterName) Name of the setter method(s).singular()Singular option details.singular(OptionSingular singular) Singular option details.singular(Consumer<OptionSingular.Builder> consumer) Singular option details.singular(Supplier<? extends OptionSingular> supplier) Singular option details.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 OptionInfoget()default OptionInfo.Builderidentity()Instance of this builder as the correct type.default OptionInfo.Builderupdate(Consumer<OptionInfo.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault OptionInfo.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<OptionInfo.Builder, OptionInfo>- 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<OptionInfo.Builder, OptionInfo>- Returns:
- instance of the built type
-