java.lang.Object
io.helidon.common.types.DefaultTypeInfo.Builder
- All Implemented Interfaces:
Builder<DefaultTypeInfo.Builder,,DefaultTypeInfo> Supplier<DefaultTypeInfo>
- Enclosing class:
DefaultTypeInfo
public static class DefaultTypeInfo.Builder
extends Object
implements Builder<DefaultTypeInfo.Builder,DefaultTypeInfo>
Builder for this type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a single annotation val.Adds a single elementInfo val.addModifierName(String val) Adds a single modifier val.Adds a single otherElementInfo val.Adds a single referencedTypeNamesToAnnotations val.Adds a collection of referencedTypeNamesToAnnotations values.Sets the annotations to val.build()Builds the instance.Sets the elementInfo to val.modifierNames(Collection<String> val) Sets the modifiers to val.Sets the otherElementInfo to val.Sets the referencedTypeNamesToAnnotations to val.superTypeInfo(TypeInfo val) Sets the superTypeInfo to val.Sets the typeKind to val.Sets the typeName to val.
-
Constructor Details
-
Builder
protected Builder()Default constructor.
-
-
Method Details
-
build
Builds the instance.- Specified by:
buildin interfaceBuilder<DefaultTypeInfo.Builder,DefaultTypeInfo> - Returns:
- the built instance
-
typeName
Sets the typeName to val.- Parameters:
val- the value- Returns:
- this fluent builder
-
typeKind
Sets the typeKind to val.- Parameters:
val- the value- Returns:
- this fluent builder
-
annotations
Sets the annotations to val.- Parameters:
val- the value- Returns:
- this fluent builder
-
addAnnotation
Adds a single annotation val.- Parameters:
val- the value- Returns:
- this fluent builder
-
elementInfo
Sets the elementInfo to val.- Parameters:
val- the value- Returns:
- this fluent builder
-
addElementInfo
Adds a single elementInfo val.- Parameters:
val- the value- Returns:
- this fluent builder
-
otherElementInfo
Sets the otherElementInfo to val.- Parameters:
val- the value- Returns:
- this fluent builder
-
addOtherElementInfo
Adds a single otherElementInfo val.- Parameters:
val- the value- Returns:
- this fluent builder
-
referencedTypeNamesToAnnotations
public DefaultTypeInfo.Builder referencedTypeNamesToAnnotations(Map<TypeName, List<AnnotationAndValue>> val) Sets the referencedTypeNamesToAnnotations to val.- Parameters:
val- the value- Returns:
- this fluent builder
-
addReferencedTypeNamesToAnnotations
public DefaultTypeInfo.Builder addReferencedTypeNamesToAnnotations(TypeName key, AnnotationAndValue val) Adds a single referencedTypeNamesToAnnotations val.- Parameters:
key- the keyval- the value- Returns:
- this fluent builder
-
addReferencedTypeNamesToAnnotations
public DefaultTypeInfo.Builder addReferencedTypeNamesToAnnotations(TypeName key, Collection<AnnotationAndValue> vals) Adds a collection of referencedTypeNamesToAnnotations values.- Parameters:
key- the keyvals- the values- Returns:
- this fluent builder
-
modifierNames
Sets the modifiers to val.- Parameters:
val- the value- Returns:
- this fluent builder
-
addModifierName
Adds a single modifier val.- Parameters:
val- the value- Returns:
- this fluent builder
-
superTypeInfo
Sets the superTypeInfo to val.- Parameters:
val- the value- Returns:
- this fluent builder
-