Class Annotation.Builder
java.lang.Object
io.helidon.common.types.Annotation.BuilderBase<Annotation.Builder, Annotation>
io.helidon.common.types.Annotation.Builder
- All Implemented Interfaces:
Prototype.Builder<Annotation.Builder, Annotation>, Builder<Annotation.Builder, Annotation>, Supplier<Annotation>
- Enclosing interface:
Annotation
public static class Annotation.Builder
extends Annotation.BuilderBase<Annotation.Builder, Annotation>
implements Builder<Annotation.Builder, Annotation>
Fluent API builder for
Annotation.-
Nested Class Summary
Nested classes/interfaces inherited from class Annotation.BuilderBase
Annotation.BuilderBase.AnnotationImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Methods inherited from class Annotation.BuilderBase
addMetaAnnotation, addMetaAnnotation, addMetaAnnotations, addProperties, clearMetaAnnotations, clearOriginatingElement, from, from, metaAnnotations, metaAnnotations, originatingElement, originatingElement, preBuildPrototype, properties, properties, property, putProperty, toString, type, typeName, typeName, typeName, typeName, validatePrototype, valueModifier and TypeMethodDescriptionaddMetaAnnotation(Annotation metaAnnotation) A list of inherited annotations (from the whole hierarchy).addMetaAnnotation(Consumer<Annotation.Builder> consumer) A list of inherited annotations (from the whole hierarchy).addMetaAnnotations(List<? extends Annotation> metaAnnotations) A list of inherited annotations (from the whole hierarchy).addProperties(Map<String, ? extends AnnotationProperty> properties) Properties defined on this annotation.Clear all metaAnnotations.Clear existing value of originatingElement.from(Annotation prototype) Update this builder from an existing prototype instance.from(Annotation.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.A list of inherited annotations (from the whole hierarchy).metaAnnotations(List<? extends Annotation> metaAnnotations) A list of inherited annotations (from the whole hierarchy).The element used to create this instance.originatingElement(Object originatingElement) The element used to create this instance.protected voidHandles providers and decorators.Properties defined on this annotation.properties(Map<String, ? extends AnnotationProperty> properties) Properties defined on this annotation.Configure the value of an annotation property.putProperty(String key, AnnotationProperty property) Properties defined on this annotation.toString()Annotation type name from annotation type.typeName()The type name, e.g.,Objects-> "java.util.Objects".The type name, e.g.,Objects-> "java.util.Objects".typeName(Consumer<TypeName.Builder> consumer) The type name, e.g.,Objects-> "java.util.Objects".The type name, e.g.,Objects-> "java.util.Objects".protected voidValidates required properties.Configure the value of this annotation (property of namevalue).Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault Annotationget()default Annotation.Builderidentity()Instance of this builder as the correct type.default Annotation.Builderupdate(Consumer<Annotation.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault Annotation.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<Annotation.Builder, Annotation>- 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<Annotation.Builder, Annotation>- Returns:
- instance of the built type
-