Class TypeInfo.Builder
java.lang.Object
io.helidon.common.types.TypeInfo.BuilderBase<TypeInfo.Builder, TypeInfo>
io.helidon.common.types.TypeInfo.Builder
- All Implemented Interfaces:
Prototype.Builder<TypeInfo.Builder, TypeInfo>, Builder<TypeInfo.Builder, TypeInfo>, Supplier<TypeInfo>
- Enclosing interface:
TypeInfo
public static class TypeInfo.Builder
extends TypeInfo.BuilderBase<TypeInfo.Builder, TypeInfo>
implements Builder<TypeInfo.Builder, TypeInfo>
Fluent API builder for
TypeInfo.-
Nested Class Summary
Nested classes/interfaces inherited from class TypeInfo.BuilderBase
TypeInfo.BuilderBase.TypeInfoImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Methods inherited from class TypeInfo.BuilderBase
accessModifier, accessModifier, addAnnotation, addAnnotation, addAnnotations, addElementInfo, addElementInfo, addElementInfo, addElementModifier, addElementModifiers, addInheritedAnnotation, addInheritedAnnotation, addInheritedAnnotations, addInterfaceTypeInfo, addInterfaceTypeInfo, addInterfaceTypeInfo, addOtherElementInfo, addOtherElementInfo, addOtherElementInfo, addReferencedModuleNames, addReferencedTypeNamesToAnnotation, addReferencedTypeNamesToAnnotations, addReferencedTypeNamesToAnnotations, annotations, annotations, clearAnnotations, clearDescription, clearElementInfo, clearElementModifiers, clearInheritedAnnotations, clearInterfaceTypeInfo, clearModule, clearOriginatingElement, clearOtherElementInfo, clearSuperTypeInfo, declaredType, declaredType, declaredType, declaredType, description, description, elementInfo, elementInfo, elementModifiers, elementModifiers, from, from, inheritedAnnotations, inheritedAnnotations, interfaceTypeInfo, interfaceTypeInfo, kind, kind, module, module, originatingElement, originatingElement, otherElementInfo, otherElementInfo, preBuildPrototype, putReferencedModuleName, putReferencedTypeNamesToAnnotation, rawType, rawType, rawType, rawType, referencedModuleNames, referencedModuleNames, referencedTypeNamesToAnnotations, referencedTypeNamesToAnnotations, superTypeInfo, superTypeInfo, superTypeInfo, superTypeInfo, toString, typeName, typeName, typeName, typeName, validatePrototypeModifier and TypeMethodDescriptionAccess modifier.accessModifier(AccessModifier accessModifier) Access modifier.addAnnotation(Annotation annotation) List of declared and known annotations for this element.addAnnotation(Consumer<Annotation.Builder> consumer) List of declared and known annotations for this element.addAnnotations(List<? extends Annotation> annotations) List of declared and known annotations for this element.addElementInfo(TypedElementInfo elementInfo) The elements that make up the type that are relevant for processing.addElementInfo(Consumer<TypedElementInfo.Builder> consumer) The elements that make up the type that are relevant for processing.addElementInfo(List<? extends TypedElementInfo> elementInfo) The elements that make up the type that are relevant for processing.addElementModifier(Modifier elementModifier) Type modifiers.addElementModifiers(Set<? extends Modifier> elementModifiers) Type modifiers.addInheritedAnnotation(Annotation inheritedAnnotation) List of all inherited annotations for this element.addInheritedAnnotation(Consumer<Annotation.Builder> consumer) List of all inherited annotations for this element.addInheritedAnnotations(List<? extends Annotation> inheritedAnnotations) List of all inherited annotations for this element.addInterfaceTypeInfo(TypeInfo interfaceTypeInfo) The interface classes for this type info.addInterfaceTypeInfo(Consumer<TypeInfo.Builder> consumer) The interface classes for this type info.addInterfaceTypeInfo(List<? extends TypeInfo> interfaceTypeInfo) The interface classes for this type info.addOtherElementInfo(TypedElementInfo otherElementInfo) The elements that make up this type that are considered "other", or being skipped because they are irrelevant to processing.addOtherElementInfo(Consumer<TypedElementInfo.Builder> consumer) The elements that make up this type that are considered "other", or being skipped because they are irrelevant to processing.addOtherElementInfo(List<? extends TypedElementInfo> otherElementInfo) The elements that make up this type that are considered "other", or being skipped because they are irrelevant to processing.addReferencedModuleNames(Map<? extends TypeName, String> referencedModuleNames) Populated if the (external) module name containing the type is known.addReferencedTypeNamesToAnnotation(TypeName key, Annotation referencedTypeNamesToAnnotation) Any Map, List, Set, or method that hasTypeName.typeArguments()will be analyzed and any type arguments will have its annotations added here.addReferencedTypeNamesToAnnotations(TypeName key, List<Annotation> referencedTypeNamesToAnnotations) Any Map, List, Set, or method that hasTypeName.typeArguments()will be analyzed and any type arguments will have its annotations added here.addReferencedTypeNamesToAnnotations(Map<? extends TypeName, List<Annotation>> referencedTypeNamesToAnnotations) Any Map, List, Set, or method that hasTypeName.typeArguments()will be analyzed and any type arguments will have its annotations added here.List of declared and known annotations for this element.annotations(List<? extends Annotation> annotations) List of declared and known annotations for this element.Clear all annotations.Clear existing value of description.Clear all elementInfo.Clear all elementModifiers.Clear all inheritedAnnotations.Clear all interfaceTypeInfo.Clear existing value of module.Clear existing value of originatingElement.Clear all otherElementInfo.Clear existing value of superTypeInfo.The declared type name, including type parameters.declaredType(TypeName declaredType) The declared type name, including type parameters.declaredType(Consumer<TypeName.Builder> consumer) The declared type name, including type parameters.declaredType(Supplier<? extends TypeName> supplier) The declared type name, including type parameters.Description, such as javadoc, if available.description(String description) Description, such as javadoc, if available.The elements that make up the type that are relevant for processing.elementInfo(List<? extends TypedElementInfo> elementInfo) The elements that make up the type that are relevant for processing.Type modifiers.elementModifiers(Set<? extends Modifier> elementModifiers) Type modifiers.Update this builder from an existing prototype instance.from(TypeInfo.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.List of all inherited annotations for this element.inheritedAnnotations(List<? extends Annotation> inheritedAnnotations) List of all inherited annotations for this element.The interface classes for this type info.interfaceTypeInfo(List<? extends TypeInfo> interfaceTypeInfo) The interface classes for this type info.kind()The kind of this type.kind(ElementKind kind) The kind of this type.module()Module of this type, if available.Module of this type, if available.The element used to create this instance.originatingElement(Object originatingElement) The element used to create this instance.The elements that make up this type that are considered "other", or being skipped because they are irrelevant to processing.otherElementInfo(List<? extends TypedElementInfo> otherElementInfo) The elements that make up this type that are considered "other", or being skipped because they are irrelevant to processing.protected voidHandles providers and decorators.putReferencedModuleName(TypeName key, String referencedModuleName) Populated if the (external) module name containing the type is known.putReferencedTypeNamesToAnnotation(TypeName key, List<Annotation> referencedTypeNamesToAnnotation) Any Map, List, Set, or method that hasTypeName.typeArguments()will be analyzed and any type arguments will have its annotations added here.rawType()The raw type name.The raw type name.rawType(Consumer<TypeName.Builder> consumer) The raw type name.The raw type name.Populated if the (external) module name containing the type is known.referencedModuleNames(Map<? extends TypeName, String> referencedModuleNames) Populated if the (external) module name containing the type is known.Any Map, List, Set, or method that hasTypeName.typeArguments()will be analyzed and any type arguments will have its annotations added here.referencedTypeNamesToAnnotations(Map<? extends TypeName, List<Annotation>> referencedTypeNamesToAnnotations) Any Map, List, Set, or method that hasTypeName.typeArguments()will be analyzed and any type arguments will have its annotations added here.The parent/super class for this type info.superTypeInfo(TypeInfo superTypeInfo) The parent/super class for this type info.superTypeInfo(Consumer<TypeInfo.Builder> consumer) The parent/super class for this type info.superTypeInfo(Supplier<? extends TypeInfo> supplier) The parent/super class for this type info.toString()typeName()The type name.The type name.typeName(Consumer<TypeName.Builder> consumer) The type name.The type name.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 TypeInfoget()default TypeInfo.Builderidentity()Instance of this builder as the correct type.default TypeInfo.Builderupdate(Consumer<TypeInfo.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault TypeInfo.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<TypeInfo.Builder, TypeInfo>- Returns:
- an instance of the setup object created from this builder
-
build
-