Module io.helidon.inject.api
Package io.helidon.inject.api
Class ElementInfo.BuilderBase<BUILDER extends ElementInfo.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ElementInfo>
java.lang.Object
io.helidon.inject.api.ElementInfo.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
ElementInfo.Builder,InjectionPointInfo.BuilderBase
- Enclosing interface:
ElementInfo
public abstract static class ElementInfo.BuilderBase<BUILDER extends ElementInfo.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ElementInfo>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
ElementInfo.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccess()The access modifier on the injection point/receiver.access(AccessModifier access) The access modifier on the injection point/receiver.addAnnotation(Annotation annotation) The annotations on this element.addAnnotation(Consumer<Annotation.Builder> consumer) The annotations on this element.addAnnotations(Set<? extends Annotation> annotations) The annotations on this element.addQualifier(Qualifier qualifier) The qualifier type annotations on this element.addQualifier(Consumer<Qualifier.Builder> consumer) The qualifier type annotations on this element.addQualifiers(Set<? extends Qualifier> qualifiers) The qualifier type annotations on this element.The annotations on this element.annotations(Set<? extends Annotation> annotations) The annotations on this element.Clear existing value of this property.Clear existing value of this property.If the element is a method or constructor then this is the total argument count for that method.elementArgs(int elementArgs) If the element is a method or constructor then this is the total argument count for that method.The injection point/receiver kind.elementKind(ElementKind elementKind) The injection point/receiver kind.The element name (e.g., method name or field name).elementName(String elementName) The element name (e.g., method name or field name).If the element is a method or constructor then this is the ordinal argument position of that argument.elementOffset(int elementOffset) If the element is a method or constructor then this is the ordinal argument position of that argument.The element type name (e.g., method type or field type).elementTypeName(TypeName elementTypeName) The element type name (e.g., method type or field type).elementTypeName(Consumer<TypeName.Builder> consumer) The element type name (e.g., method type or field type).elementTypeName(Supplier<? extends TypeName> supplier) The element type name (e.g., method type or field type).from(ElementInfo prototype) Update this builder from an existing prototype instance.from(ElementInfo.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.The qualifier type annotations on this element.qualifiers(Set<? extends Qualifier> qualifiers) The qualifier type annotations on this element.The enclosing class name for the element.serviceTypeName(TypeName serviceTypeName) The enclosing class name for the element.serviceTypeName(Consumer<TypeName.Builder> consumer) The enclosing class name for the element.serviceTypeName(Supplier<? extends TypeName> supplier) The enclosing class name for the element.booleanTrue if the injection point is static.staticDeclaration(boolean staticDeclaration) True if the injection point is static.toString()protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
elementKind
The injection point/receiver kind.- Parameters:
elementKind- the kind- Returns:
- updated builder instance
- See Also:
-
access
The access modifier on the injection point/receiver.- Parameters:
access- the access- Returns:
- updated builder instance
- See Also:
-
elementTypeName
The element type name (e.g., method type or field type).- Parameters:
elementTypeName- the target receiver type name- Returns:
- updated builder instance
- See Also:
-
elementTypeName
The element type name (e.g., method type or field type).- Parameters:
consumer- consumer of builder for the target receiver type name- Returns:
- updated builder instance
- See Also:
-
elementTypeName
The element type name (e.g., method type or field type).- Parameters:
supplier- supplier of the target receiver type name- Returns:
- updated builder instance
- See Also:
-
elementName
The element name (e.g., method name or field name).- Parameters:
elementName- the target receiver name- Returns:
- updated builder instance
- See Also:
-
clearElementOffset
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
elementOffset
If the element is a method or constructor then this is the ordinal argument position of that argument.- Parameters:
elementOffset- the offset argument, 0 based, or empty if field type- Returns:
- updated builder instance
- See Also:
-
clearElementArgs
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
elementArgs
If the element is a method or constructor then this is the total argument count for that method.- Parameters:
elementArgs- total argument count- Returns:
- updated builder instance
- See Also:
-
staticDeclaration
True if the injection point is static.- Parameters:
staticDeclaration- true if static receiver- Returns:
- updated builder instance
- See Also:
-
serviceTypeName
The enclosing class name for the element.- Parameters:
serviceTypeName- service type name- Returns:
- updated builder instance
- See Also:
-
serviceTypeName
The enclosing class name for the element.- Parameters:
consumer- consumer of builder for service type name- Returns:
- updated builder instance
- See Also:
-
serviceTypeName
The enclosing class name for the element.- Parameters:
supplier- supplier of service type name- Returns:
- updated builder instance
- See Also:
-
annotations
The annotations on this element.- Parameters:
annotations- the annotations on this element- Returns:
- updated builder instance
- See Also:
-
addAnnotations
The annotations on this element.- Parameters:
annotations- the annotations on this element- Returns:
- updated builder instance
- See Also:
-
addAnnotation
The annotations on this element.- Parameters:
annotation- the annotations on this element- Returns:
- updated builder instance
- See Also:
-
addAnnotation
The annotations on this element.- Parameters:
consumer- the annotations on this element- Returns:
- updated builder instance
- See Also:
-
qualifiers
The qualifier type annotations on this element.- Parameters:
qualifiers- the qualifier type annotations on this element- Returns:
- updated builder instance
- See Also:
-
addQualifiers
The qualifier type annotations on this element.- Parameters:
qualifiers- the qualifier type annotations on this element- Returns:
- updated builder instance
- See Also:
-
addQualifier
The qualifier type annotations on this element.- Parameters:
qualifier- the qualifier type annotations on this element- Returns:
- updated builder instance
- See Also:
-
addQualifier
The qualifier type annotations on this element.- Parameters:
consumer- the qualifier type annotations on this element- Returns:
- updated builder instance
- See Also:
-
elementKind
The injection point/receiver kind.- Returns:
- the element kind
-
access
The access modifier on the injection point/receiver.- Returns:
- the access
-
elementTypeName
The element type name (e.g., method type or field type).- Returns:
- the element type name
-
elementName
The element name (e.g., method name or field name).- Returns:
- the element name
-
elementOffset
If the element is a method or constructor then this is the ordinal argument position of that argument.- Returns:
- the element offset
-
elementArgs
If the element is a method or constructor then this is the total argument count for that method.- Returns:
- the element args
-
staticDeclaration
public boolean staticDeclaration()True if the injection point is static.- Returns:
- the static declaration
-
serviceTypeName
The enclosing class name for the element.- Returns:
- the service type name
-
annotations
The annotations on this element.- Returns:
- the annotations
-
qualifiers
The qualifier type annotations on this element.- Returns:
- the qualifiers
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-