Class TypedElementInfo.Builder
java.lang.Object
io.helidon.common.types.TypedElementInfo.BuilderBase<TypedElementInfo.Builder, TypedElementInfo>
io.helidon.common.types.TypedElementInfo.Builder
- All Implemented Interfaces:
Prototype.Builder<TypedElementInfo.Builder, TypedElementInfo>, Builder<TypedElementInfo.Builder, TypedElementInfo>, Supplier<TypedElementInfo>
- Enclosing interface:
TypedElementInfo
public static class TypedElementInfo.Builder
extends TypedElementInfo.BuilderBase<TypedElementInfo.Builder, TypedElementInfo>
implements Builder<TypedElementInfo.Builder, TypedElementInfo>
Fluent API builder for
TypedElementInfo.-
Nested Class Summary
Nested classes/interfaces inherited from class TypedElementInfo.BuilderBase
TypedElementInfo.BuilderBase.TypedElementInfoImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Methods inherited from class TypedElementInfo.BuilderBase
accessModifier, accessModifier, addAnnotation, addAnnotation, addAnnotations, addComponentTypes, addElementModifier, addElementModifiers, addElementTypeAnnotations, addInheritedAnnotation, addInheritedAnnotation, addInheritedAnnotations, addParameterArgument, addParameterArgument, addParameterArguments, addThrowsChecked, addTypeParameter, addTypeParameter, addTypeParameters, annotations, annotations, clearAnnotations, clearComponentTypes, clearDefaultValue, clearDescription, clearElementModifiers, clearElementTypeAnnotations, clearEnclosingType, clearInheritedAnnotations, clearOriginatingElement, clearParameterArguments, clearThrowsChecked, clearTypeParameters, componentTypes, componentTypes, defaultValue, defaultValue, description, description, elementModifiers, elementModifiers, elementName, elementName, elementTypeAnnotations, elementTypeAnnotations, enclosingType, enclosingType, enclosingType, enclosingType, from, from, inheritedAnnotations, inheritedAnnotations, kind, kind, originatingElement, originatingElement, parameterArguments, parameterArguments, preBuildPrototype, throwsChecked, throwsChecked, toString, typeName, typeName, typeName, typeName, typeParameters, typeParameters, validatePrototypeModifier and TypeMethodDescriptionAccess modifier of the element.accessModifier(AccessModifier accessModifier) Access modifier of the element.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.addComponentTypes(List<? extends TypeName> componentTypes) Returns the component type names describing the element.addElementModifier(Modifier elementModifier) Element modifiers.addElementModifiers(Set<? extends Modifier> elementModifiers) Element modifiers.addElementTypeAnnotations(List<? extends Annotation> elementTypeAnnotations) The list of known annotations on the type name referenced byTypedElementInfo.typeName().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.addParameterArgument(TypedElementInfo parameterArgument) Parameter arguments applicable if this type element represents aElementKind.METHOD.addParameterArgument(Consumer<TypedElementInfo.Builder> consumer) Parameter arguments applicable if this type element represents aElementKind.METHOD.addParameterArguments(List<? extends TypedElementInfo> parameterArguments) Parameter arguments applicable if this type element represents aElementKind.METHOD.addThrowsChecked(Set<? extends TypeName> throwsChecked) addTypeParameter(TypeName typeParameter) Type parameters of this element.addTypeParameter(Consumer<TypeName.Builder> consumer) Type parameters of this element.addTypeParameters(List<? extends TypeName> typeParameters) Type parameters of this element.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 all componentTypes.Clear existing value of defaultValue.Clear existing value of description.Clear all elementModifiers.Clear all elementTypeAnnotations.Clear existing value of enclosingType.Clear all inheritedAnnotations.Clear existing value of originatingElement.Clear all parameterArguments.Clear all throwsChecked.Clear all typeParameters.Returns the component type names describing the element.componentTypes(List<? extends TypeName> componentTypes) Returns the component type names describing the element.The default value assigned to the element, represented as a string.defaultValue(String defaultValue) The default value assigned to the element, represented as a string.Description, such as javadoc, if available.description(String description) Description, such as javadoc, if available.Element modifiers.elementModifiers(Set<? extends Modifier> elementModifiers) Element modifiers.The element (e.g., method, field, etc) name.elementName(String elementName) The element (e.g., method, field, etc) name.The list of known annotations on the type name referenced byTypedElementInfo.typeName().elementTypeAnnotations(List<? extends Annotation> elementTypeAnnotations) The list of known annotations on the type name referenced byTypedElementInfo.typeName().The enclosing type name for this typed element.enclosingType(TypeName enclosingType) The enclosing type name for this typed element.enclosingType(Consumer<TypeName.Builder> consumer) The enclosing type name for this typed element.enclosingType(Supplier<? extends TypeName> supplier) The enclosing type name for this typed element.from(TypedElementInfo prototype) Update this builder from an existing prototype instance.from(TypedElementInfo.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.kind()The kind of element (e.g., method, field, etc).kind(ElementKind kind) The kind of element (e.g., method, field, etc).The element used to create this instance.originatingElement(Object originatingElement) The element used to create this instance.Parameter arguments applicable if this type element represents aElementKind.METHOD.parameterArguments(List<? extends TypedElementInfo> parameterArguments) Parameter arguments applicable if this type element represents aElementKind.METHOD.protected voidHandles providers and decorators.throwsChecked(Set<? extends TypeName> throwsChecked) toString()typeName()The type name for the element (e.g., java.util.List).The type name for the element (e.g., java.util.List).typeName(Consumer<TypeName.Builder> consumer) The type name for the element (e.g., java.util.List).The type name for the element (e.g., java.util.List).Type parameters of this element.typeParameters(List<? extends TypeName> typeParameters) Type parameters of this element.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 TypedElementInfoget()default TypedElementInfo.Builderidentity()Instance of this builder as the correct type.default TypedElementInfo.Builderupdate(Consumer<TypedElementInfo.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault TypedElementInfo.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<TypedElementInfo.Builder, TypedElementInfo>- 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<TypedElementInfo.Builder, TypedElementInfo>- Returns:
- instance of the built type
-