public class JavaDocParserBuilder extends Object
JavaDocParser instance.| Modifier and Type | Field and Description |
|---|---|
static List<BlockTag> |
STANDARD_JAVADOC_TAGS |
static List<BlockTag> |
STANDARD_KDOC_TAGS |
static List<BlockTag> |
UNOFFICIAL_TAGS |
| Modifier and Type | Method and Description |
|---|---|
JavaDocParser |
build()
Create the
JavaDocParser instance. |
static JavaDocParserBuilder |
withAllKnownTags()
Creates a new builder instance with all known block tags of
STANDARD_JAVADOC_TAGS and STANDARD_KDOC_TAGS. |
JavaDocParserBuilder |
withOutputType(OutputType outputType)
Adds string replacements based on regular expressions to convert JavaDoc format into the given output format.
|
static JavaDocParserBuilder |
withoutTags()
Create a new builder instance without any javadoc tags.
|
JavaDocParserBuilder |
withReplacement(Replacement replacement)
Adds custom replacements for the output content.
|
static JavaDocParserBuilder |
withStandardJavadocTags()
Adds all tags from the official Oracle documentation.
|
static JavaDocParserBuilder |
withStandardKDocTags()
Adds all tags from the official Kotlin documentation.
|
<T extends BlockTag> |
withTag(T tag)
Adds a javadoc tag to the parser instance.
|
public static JavaDocParserBuilder withoutTags()
public static JavaDocParserBuilder withStandardJavadocTags()
public static JavaDocParserBuilder withStandardKDocTags()
public static JavaDocParserBuilder withAllKnownTags()
STANDARD_JAVADOC_TAGS and STANDARD_KDOC_TAGS.public <T extends BlockTag> JavaDocParserBuilder withTag(T tag)
T - type representation of the custom tagtag - a new instance of the custom tagpublic JavaDocParserBuilder withOutputType(OutputType outputType)
outputType - the requested output typepublic JavaDocParserBuilder withReplacement(Replacement replacement)
replacement - the replacement functionwithOutputType(OutputType)public JavaDocParser build()
JavaDocParser instance.Copyright © 2018–2022. All rights reserved.