Package io.helidon.codegen.classmodel
Class TypeArgument.Builder
java.lang.Object
io.helidon.codegen.classmodel.TypeArgument.Builder
- All Implemented Interfaces:
Builder<TypeArgument.Builder,
,TypeArgument> Supplier<TypeArgument>
- Enclosing class:
TypeArgument
Fluent API builder for
TypeArgument
.-
Method Summary
Modifier and TypeMethodDescriptionType this argument is bound to (may have more than one for intersection types).Type this argument is bound to.Type this argument is bound to.Type this argument is bound to.build()
Build the instance from this builder.description
(String description) Set description of the component.description
(List<String> description) Set description of the component.includeImport
(boolean includeImport) Whether to include import type information among the imports.lowerBound
(boolean lowerBound) Bound is by default an upper bounds (presented asextends
in code).Token name of this argument.
-
Method Details
-
token
Token name of this argument.- Parameters:
token
- token name- Returns:
- updated builder instance
-
bound
Type this argument is bound to.- Parameters:
bound
- argument bound- Returns:
- updated builder instance
-
bound
Type this argument is bound to.- Parameters:
bound
- argument bound- Returns:
- updated builder instance
-
lowerBound
Bound is by default an upper bounds (presented asextends
in code). By specifying that we use alowerBound
, the keyword will besuper
.- Parameters:
lowerBound
- whether the specified bound is a lower bound (defaults to upper bound); ignore if no bound- Returns:
- updated builder instance
-
bound
Type this argument is bound to.- Parameters:
bound
- argument bound- Returns:
- updated builder instance
-
addBound
Type this argument is bound to (may have more than one for intersection types).- Parameters:
bound
- argument bound- Returns:
- updated builder instance
-
description
Set description of the component. It overwrites previously set description.- Parameters:
description
- component description- Returns:
- updated builder instance
-
description
Set description of the component. It overwrites previously set description.- Parameters:
description
- component description- Returns:
- updated builder instance
-
build
Description copied from interface:Builder
Build the instance from this builder.- Returns:
- instance of the built type
-
includeImport
Whether to include import type information among the imports.- Parameters:
includeImport
- whether imports should be included- Returns:
- updated builder instance
-