Module io.helidon.builder.codegen
Package io.helidon.builder.codegen
Class OptionInfo.BuilderBase.OptionInfoImpl
java.lang.Object
io.helidon.builder.codegen.OptionInfo.BuilderBase.OptionInfoImpl
- All Implemented Interfaces:
Prototype.Api,OptionInfo,Annotated
- Enclosing class:
OptionInfo.BuilderBase<BUILDER extends OptionInfo.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OptionInfo>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.builder.codegen.OptionInfo
OptionInfo.Builder, OptionInfo.BuilderBase<BUILDER extends OptionInfo.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OptionInfo> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOptionInfoImpl(OptionInfo.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionAccess modifier of generated setter methods on builder.List of allowed values for this option.List of declared and known annotations for this element.If the option has a builder, return its information.booleanSet totrueif this option is only available on the builder.booleanWhether this option is confidential (i.e.Details about configurability of this option.The return type of the blueprint method, or the type expected in getter of the option.Type that declares this option.Option decorator type.Default value for this option, a consumer of the field content builder.Deprecation details.Description of this option, used in Javadoc as the main text if defined.booleanName of the getter methods.inthashCode()booleanWhether to include this option in generatedObject.equals(Object)andObject.hashCode()methods.booleanWhether to include this option in generatedObject.toString()method.List of all inherited annotations for this element.Blueprint method if created from blueprint, or interface method if inherited from non-blueprint interface.name()Option name.Parameter/return type description, used in Javadoc as the param/return description.A prototype that can build this option type.provider()Provider details.List of qualifiers for this option.booleanWhether this option should be loaded fromServiceRegistry.booleanrequired()Whether this is a required option.Custom runtime type factory method.booleanWhether thisMapoption is expected to have the same generic type for key and value.Name of the setter method(s).singular()Singular option details.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.common.types.Annotated
allAnnotations, annotation, findAnnotation, hasAnnotation
-
Constructor Details
-
OptionInfoImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
interfaceMethod
Description copied from interface:OptionInfoBlueprint method if created from blueprint, or interface method if inherited from non-blueprint interface. Empty in case this is a "synthetic" option.- Specified by:
interfaceMethodin interfaceOptionInfo- Returns:
- interface method, if present
-
declaringType
Description copied from interface:OptionInfoType that declares this option. This may be the blueprint type, or an interface type. In case this is a "synthetic" option, there is not type to use.- Specified by:
declaringTypein interfaceOptionInfo- Returns:
- type that declares this option, if present
-
name
Description copied from interface:OptionInfoOption name.- Specified by:
namein interfaceOptionInfo- Returns:
- name of this option
-
getterName
Description copied from interface:OptionInfoName of the getter methods.- Specified by:
getterNamein interfaceOptionInfo- Returns:
- getter method name
-
setterName
Description copied from interface:OptionInfoName of the setter method(s).- Specified by:
setterNamein interfaceOptionInfo- Returns:
- setter method name
-
declaredType
Description copied from interface:OptionInfoThe return type of the blueprint method, or the type expected in getter of the option.- Specified by:
declaredTypein interfaceOptionInfo- Returns:
- declared type
-
decorator
Description copied from interface:OptionInfoOption decorator type.- Specified by:
decoratorin interfaceOptionInfo- Returns:
- type of the option decorator, if present
-
includeInToString
public boolean includeInToString()Description copied from interface:OptionInfoWhether to include this option in generatedObject.toString()method.- Specified by:
includeInToStringin interfaceOptionInfo- Returns:
- whether to include in the
toStringmethod
-
includeInEqualsAndHashCode
public boolean includeInEqualsAndHashCode()Description copied from interface:OptionInfoWhether to include this option in generatedObject.equals(Object)andObject.hashCode()methods.- Specified by:
includeInEqualsAndHashCodein interfaceOptionInfo- Returns:
- whether to include in the
equalsandhashCodemethods
-
confidential
public boolean confidential()Description copied from interface:OptionInfoWhether this option is confidential (i.e. we should not print the value intoStringmethod).- Specified by:
confidentialin interfaceOptionInfo- Returns:
- whether this option is confidential
-
registryService
public boolean registryService()Description copied from interface:OptionInfoWhether this option should be loaded fromServiceRegistry.- Specified by:
registryServicein interfaceOptionInfo- Returns:
- whether this option should be loaded from
ServiceRegistry
-
sameGeneric
public boolean sameGeneric()Description copied from interface:OptionInfoWhether thisMapoption is expected to have the same generic type for key and value. For example, for aMap<Class<?>, Instance<?>>that hassameGenericset totrue, we would generate singular method with signature<T> put(Class<T>, Instance<T>.- Specified by:
sameGenericin interfaceOptionInfo- Returns:
- whether a map has the same generic in key and value for a single mapping
-
required
public boolean required()Description copied from interface:OptionInfoWhether this is a required option. Will be true if:- an
Option.Requiredis present in blueprint - the return type on blueprint is not
Optionalor a collection, and we do not support null
- Specified by:
requiredin interfaceOptionInfo- Returns:
- whether the option is required
- an
-
builderOptionOnly
public boolean builderOptionOnly()Description copied from interface:OptionInfoSet totrueif this option is only available on the builder. In such a case the prototype and implementation will not have this option.- Specified by:
builderOptionOnlyin interfaceOptionInfo- Returns:
- builder option only
-
qualifiers
Description copied from interface:OptionInfoList of qualifiers for this option.- Specified by:
qualifiersin interfaceOptionInfo- Returns:
- service registry qualifiers defined on this option (to be used when getting a service registry instance)
-
allowedValues
Description copied from interface:OptionInfoList of allowed values for this option.- Specified by:
allowedValuesin interfaceOptionInfo- Returns:
- allowed values
-
defaultValue
Description copied from interface:OptionInfoDefault value for this option, a consumer of the field content builder.- Specified by:
defaultValuein interfaceOptionInfo- Returns:
- default value consumer
-
configured
Description copied from interface:OptionInfoDetails about configurability of this option.- Specified by:
configuredin interfaceOptionInfo- Returns:
- configured setup if configured
-
deprecation
Description copied from interface:OptionInfoDeprecation details.- Specified by:
deprecationin interfaceOptionInfo- Returns:
- deprecation details, if present
-
provider
Description copied from interface:OptionInfoProvider details.- Specified by:
providerin interfaceOptionInfo- Returns:
- provider details, if present
-
singular
Description copied from interface:OptionInfoSingular option details.- Specified by:
singularin interfaceOptionInfo- Returns:
- singular setter name and related information, if present
-
accessModifier
Description copied from interface:OptionInfoAccess modifier of generated setter methods on builder. Note that prototype methods are declared in an interface, so these must always be public.- Specified by:
accessModifierin interfaceOptionInfo- Returns:
- access modifier to use
-
builderInfo
Description copied from interface:OptionInfoIf the option has a builder, return its information.- Specified by:
builderInfoin interfaceOptionInfo- Returns:
- builder information, if present
-
runtimeType
Description copied from interface:OptionInfoCustom runtime type factory method.- Specified by:
runtimeTypein interfaceOptionInfo- Returns:
- runtime type factory method, if present
-
description
Description copied from interface:OptionInfoDescription of this option, used in Javadoc as the main text if defined.- Specified by:
descriptionin interfaceOptionInfo- Returns:
- description, if present
-
paramDescription
Description copied from interface:OptionInfoParameter/return type description, used in Javadoc as the param/return description.- Specified by:
paramDescriptionin interfaceOptionInfo- Returns:
- parameter description, if present
-
prototypedBy
Description copied from interface:OptionInfoA prototype that can build this option type.- Specified by:
prototypedByin interfaceOptionInfo- Returns:
- prototyped by type, or empty if not annotated
-
annotations
Description copied from interface:AnnotatedList of declared and known annotations for this element. Note that "known" implies that the annotation is visible, which depends upon the context in which it was build (such as theof the annotation).- Specified by:
annotationsin interfaceAnnotated- Returns:
- the list of annotations declared on this element
-
inheritedAnnotations
Description copied from interface:AnnotatedList of all inherited annotations for this element. Inherited annotations are annotations declared on annotations of this element that are also marked asInherited.The returned list does not contain
Annotated.annotations(). If a meta-annotation is present on multiple annotations, it will be returned once for each such declaration.This method does not return annotations on super types or interfaces!
- Specified by:
inheritedAnnotationsin interfaceAnnotated- Returns:
- list of all meta annotations of this element
-
toString
-
equals
-
hashCode
public int hashCode()
-