@Deprecated
public final class JavaStyleDocumentationWriterBuilder
extends java.lang.Object
DocumentationWriter
for Java style
documentation comments.
Documentation comments are automatically sanitized by escaping a closing documentation comment (i.e., star (*) followed by a forward slash (/)). This should also work for JavaScript, PHP, and other languages that use Java-style comments.
Constructor and Description |
---|
JavaStyleDocumentationWriterBuilder()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<T extends CodeWriter> |
build()
Deprecated.
Creates a
DocumentationWriter configured by the builder. |
JavaStyleDocumentationWriterBuilder |
escapeAtSignWithEntity(boolean escapeAtSignWithEntity)
Deprecated.
Sets whether or not the "@" sign is escaped with an HTML entity.
|
static java.lang.String |
escapeAtSignWithEntity(java.lang.String contents)
Deprecated.
A function used to escape the @ sign of a documentation
comment with an HTML entity of @.
|
static java.lang.String |
escapeClosingChars(java.lang.String contents)
Deprecated.
A function used to escape the closing tokens of a documentation comment.
|
JavaStyleDocumentationWriterBuilder |
mappingFunction(java.util.function.Function<java.lang.String,java.lang.String> mappingFunction)
Deprecated.
Sets a custom mapping function to use when filtering documentation.
|
JavaStyleDocumentationWriterBuilder |
namedDocumentationSection(java.lang.String namedDocumentationSection)
Deprecated.
Sets a specific named section to use when writing documentation.
|
public JavaStyleDocumentationWriterBuilder()
public static java.lang.String escapeClosingChars(java.lang.String contents)
contents
- Contents to sanitize.public static java.lang.String escapeAtSignWithEntity(java.lang.String contents)
contents
- Contents to sanitize.public <T extends CodeWriter> DocumentationWriter<T> build()
DocumentationWriter
configured by the builder.T
- The type of writer to create.public JavaStyleDocumentationWriterBuilder namedDocumentationSection(java.lang.String namedDocumentationSection)
namedDocumentationSection
- The name of the state's section to use.public JavaStyleDocumentationWriterBuilder mappingFunction(java.util.function.Function<java.lang.String,java.lang.String> mappingFunction)
Setting a custom mapping function will disable the default mapping
function that is used to escape the closing tokens of a block comment.
However, other mapping functions will still compose with a custom
mapping function if provided (e.g., escaping @ symbols via
escapeAtSignWithEntity(boolean)
still compose with a custom mapping function).
mappingFunction
- Mapping function to use. Set to null
to use the default.public JavaStyleDocumentationWriterBuilder escapeAtSignWithEntity(boolean escapeAtSignWithEntity)
At signs are not escaped by default.
escapeAtSignWithEntity
- Set to true to escape, false to not.