Module io.helidon.pico.api
Package io.helidon.pico.api
Class AbstractElementInfo.Builder<B extends AbstractElementInfo.Builder<B,T>,T extends ElementInfo>
java.lang.Object
io.helidon.pico.api.AbstractElementInfo.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- All Implemented Interfaces:
Builder<B,,T> ElementInfo,Supplier<T>
- Direct Known Subclasses:
AbstractInjectionPointInfo.Builder,DefaultElementInfo.Builder
- Enclosing class:
AbstractElementInfo
public abstract static class AbstractElementInfo.Builder<B extends AbstractElementInfo.Builder<B,T>,T extends ElementInfo>
extends Object
implements ElementInfo, Builder<B,T>
Fluent API builder for
T.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.pico.api.ElementInfo
ElementInfo.Access, ElementInfo.ElementKind -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SetField value forjava.util.Set<io.helidon.common.types.AnnotationAndValue> annotations().protected final SetField value forjava.util.Set<io.helidon.pico.api.QualifierAndValue> qualifiers().Fields inherited from interface io.helidon.pico.api.ElementInfo
CONSTRUCTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.access()The access modifier on the injection point/receiver.access(ElementInfo.Access val) Setter for 'access'.Setter for 'annotations'.Setter for 'annotations'.Setter for 'qualifiers'.Setter for 'qualifiers'.The annotations on this element.Setter for 'annotations'.If the element is a method or constructor then this is the total argument count for that method.elementArgs(Integer val) Setter for 'elementArgs'.elementArgs(Optional<Integer> val) Setter for 'elementArgs'.The injection point/receiver kind.Setter for 'elementKind'.The element name (e.g., method name or field name).elementName(String val) Setter for 'elementName'.If the element is a method or constructor then this is the ordinal argument position of that argument.elementOffset(Integer val) Setter for 'elementOffset'.elementOffset(Optional<Integer> val) Setter for 'elementOffset'.The element type name (e.g., method type or field type).elementTypeName(String val) Setter for 'elementTypeName'.The qualifier type annotations on this element.Setter for 'qualifiers'.The enclosing class name for the element.serviceTypeName(String val) Setter for 'serviceTypeName'.booleanTrue if the injection point is static.staticDeclaration(boolean val) Setter for 'staticDeclaration'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.ElementInfo, calling theAttributeVisitorfor each.
-
Field Details
-
annotations
Field value forjava.util.Set<io.helidon.common.types.AnnotationAndValue> annotations(). -
qualifiers
Field value forjava.util.Set<io.helidon.pico.api.QualifierAndValue> qualifiers().
-
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
elementKind
Description copied from interface:ElementInfoThe injection point/receiver kind.- Specified by:
elementKindin interfaceElementInfo- Returns:
- the kind
-
access
Description copied from interface:ElementInfoThe access modifier on the injection point/receiver.- Specified by:
accessin interfaceElementInfo- Returns:
- the access
-
elementTypeName
Description copied from interface:ElementInfoThe element type name (e.g., method type or field type).- Specified by:
elementTypeNamein interfaceElementInfo- Returns:
- the target receiver type name
-
elementName
Description copied from interface:ElementInfoThe element name (e.g., method name or field name).- Specified by:
elementNamein interfaceElementInfo- Returns:
- the target receiver name
-
elementOffset
Description copied from interface:ElementInfoIf the element is a method or constructor then this is the ordinal argument position of that argument.- Specified by:
elementOffsetin interfaceElementInfo- Returns:
- the offset argument, 0 based, or empty if field type
-
elementArgs
Description copied from interface:ElementInfoIf the element is a method or constructor then this is the total argument count for that method.- Specified by:
elementArgsin interfaceElementInfo- Returns:
- total argument count
-
staticDeclaration
public boolean staticDeclaration()Description copied from interface:ElementInfoTrue if the injection point is static.- Specified by:
staticDeclarationin interfaceElementInfo- Returns:
- true if static receiver
-
serviceTypeName
Description copied from interface:ElementInfoThe enclosing class name for the element.- Specified by:
serviceTypeNamein interfaceElementInfo- Returns:
- service type name
-
annotations
Description copied from interface:ElementInfoThe annotations on this element.- Specified by:
annotationsin interfaceElementInfo- Returns:
- the annotations on this element
-
qualifiers
Description copied from interface:ElementInfoThe qualifier type annotations on this element.- Specified by:
qualifiersin interfaceElementInfo- Returns:
- the qualifier type annotations on this element
-
elementKind
Setter for 'elementKind'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
access
Setter for 'access'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
elementTypeName
Setter for 'elementTypeName'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
elementName
Setter for 'elementName'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
elementOffset
Setter for 'elementOffset'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
elementOffset
Setter for 'elementOffset'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
elementArgs
Setter for 'elementArgs'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
elementArgs
Setter for 'elementArgs'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
staticDeclaration
Setter for 'staticDeclaration'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
serviceTypeName
Setter for 'serviceTypeName'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
annotations
Setter for 'annotations'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addAnnotations
Setter for 'annotations'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addAnnotation
Setter for 'annotations'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
qualifiers
Setter for 'qualifiers'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addQualifiers
Setter for 'qualifiers'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addQualifier
Setter for 'qualifiers'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
accept
Accept and update from the provided value object.- Parameters:
val- the value object to copy from- Returns:
- this instance typed to correct type
-
visitAttributes
Visits all attributes of io.helidon.pico.api.ElementInfo, calling theAttributeVisitorfor each.- Type Parameters:
T- type of the user defined context- Parameters:
visitor- the visitor called for each attributeuserDefinedCtx- any object you wish to pass to each visit call
-