java.lang.Object
io.helidon.codegen.classmodel.Javadoc.Builder
- All Implemented Interfaces:
Builder<Javadoc.Builder,
,Javadoc> Supplier<Javadoc>
- Enclosing class:
Javadoc
Fluent API builder for
Javadoc
.-
Method Summary
Modifier and TypeMethodDescriptionAdd text line to the content.addGenericArgument
(String argument, String description) Add generic argument tag name and description.addGenericArgument
(String argument, List<String> description) Add generic argument tag name and description.Add text line to the content.addParameter
(String paramName, String description) Add parameter tag name and description.addParameter
(String paramName, List<String> description) Add parameter tag name and description.Add throws tag name and description.Add throws tag name and description.Add throws tag name and description.build()
Build the instance from this builder.clear()
Remove everything from this builder.Set new content.deprecation
(String deprecation) Deprecation description.deprecation
(List<String> deprecation) Deprecation description, multiple lines.Populate this builder with content of the already created Javadoc instance.generate
(boolean generate) Whether to generate this javadoc.includeImport
(boolean includeImport) Whether to include import type information among the imports.Populates this builder with the parsed javadoc data.Populates this builder with the parsed javadoc data.returnDescription
(String returnDescription) Add return type description.returnDescription
(List<String> returnDescription) Add return type description.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Returns:
- instance of the built type
-
addLine
Add text line to the content. New line character is added after this line.- Parameters:
line
- line to add- Returns:
- updated builder instance
-
add
Add text line to the content. New line character is not added after this line, so all newly added text will be appended to the same line.- Parameters:
line
- line to add- Returns:
- updated builder instance
-
content
Set new content. This method replaces previously created content in this builder.- Parameters:
content
- content to be set- Returns:
- updated builder instance
-
addParameter
Add parameter tag name and description.- Parameters:
paramName
- parameter namedescription
- parameter description- Returns:
- updated builder instance
-
addParameter
Add parameter tag name and description.- Parameters:
paramName
- parameter namedescription
- parameter description- Returns:
- updated builder instance
-
addThrows
Add throws tag name and description.- Parameters:
exception
- exception namedescription
- exception description- Returns:
- updated builder instance
-
addTag
Add throws tag name and description.- Parameters:
tag
- tag namedescription
- tag description- Returns:
- updated builder instance
-
addTag
Add throws tag name and description.- Parameters:
tag
- tag namedescription
- tag description- Returns:
- updated builder instance
-
returnDescription
Add return type description.- Parameters:
returnDescription
- return type description- Returns:
- updated builder instance
-
returnDescription
Add return type description.- Parameters:
returnDescription
- return type description- Returns:
- updated builder instance
-
addGenericArgument
Add generic argument tag name and description.- Parameters:
argument
- parameter namedescription
- parameter description- Returns:
- updated builder instance
-
addGenericArgument
Add generic argument tag name and description.- Parameters:
argument
- parameter namedescription
- parameter description- Returns:
- updated builder instance
-
deprecation
Deprecation description.- Parameters:
deprecation
- deprecation description- Returns:
- updated builder instance
-
deprecation
Deprecation description, multiple lines.- Parameters:
deprecation
- deprecation description- Returns:
- updated builder instance
-
generate
Whether to generate this javadoc.- Parameters:
generate
- generate javadoc- Returns:
- updated builder instance
-
from
Populate this builder with content of the already created Javadoc instance.- Parameters:
javadoc
- already created javadoc instance- Returns:
- updated builder instance
-
clear
Remove everything from this builder.- Returns:
- updated builder instance
-
parse
Populates this builder with the parsed javadoc data.- Parameters:
fullJavadocString
- string format javadoc- Returns:
- updated builder instance
-
parse
Populates this builder with the parsed javadoc data.- Parameters:
fullJavadocLines
- string list format javadoc- Returns:
- updated builder instance
-
includeImport
Whether to include import type information among the imports.- Parameters:
includeImport
- whether imports should be included- Returns:
- updated builder instance
-