| Modifier and Type | Class and Description |
|---|---|
| public static class | TagletWriter.
A class that provides the information about the enclosing context for
a series of |
| Modifier and Type | Field and Description |
|---|---|
| public final HtmlConfiguration | |
| public final TagletWriter. | context
The context in which to generate the output for a series of |
| public final HtmlDocletWriter | |
| public final HtmlOptions | |
| public final Resources | |
| private static final int | |
| public final Utils |
| Access | Constructor and Description |
|---|---|
| public | TagletWriter(HtmlDocletWriter
the htmlWriter, boolean HtmlDocletWriter for the pagetrue if this taglet writer is being used for a
"first sentence" summaryCreates a taglet writer. |
| public | TagletWriter(HtmlDocletWriter
the htmlWriter, boolean HtmlDocletWriter for the pagetrue if this taglet writer is being used for a
"first sentence" summary, and false otherwisetrue if this taglet writer is being used for the content
of a {@summary ...} tag, and false otherwiseCreates a taglet writer. |
| public | TagletWriter(HtmlDocletWriter
the htmlWriter, TagletWriter.HtmlDocletWriter for the pagethe enclosing context for any tags contextCreates a taglet writer. |
| Modifier and Type | Method and Description |
|---|---|
| public Content | Returns: the generated contentthe tree that holds the documentation holderTree, List<? extends DocTree> list of trees)DocTree nodes containing text and inline tags (often alternating)
present in the text of interest for this docConverts inline tags and text to content, expanding the inline tags along the way. |
| public Content | Returns: the generated contentThe element that owns the documentation element, List<? extends DocTree> list of trees)DocTree nodes containing text and inline tags (often alternating)
present in the text of interest for this docConverts inline tags and text to content, expanding the inline tags along the way. |
| public Content | Returns: the generated contentthe element where comment resides element, DocTree the tag that holds the documentation holder, List<? extends DocTree> array of text tags and inline tags (often alternating)
present in the text of interest for this doc trees, boolean true if this is the first sentence isFirstSentence)Converts inline tags and text to content, expanding the inline tags along the way. |
| public Content | |
| pack-priv Content | |
| public Content | Returns: the contentthe manager that manages the taglets tagletManager, Element the element that we are to write tags for element, List<Taglet> the taglets for the tags to write taglets)Returns the content generated from the block tags for a given element. |
| public TagletWriter. | |
| public TypeElement | Returns: the type element documented by the currentHtmlDocletWriter (may be null)Returns the type element documented by the current |
| public String | |
| private String | |
| public Content | Returns: the content, ornullthe element associated with the doc comment holder, InlineTagTree the inline tag to be documented inlineTag)Returns the content generated from an inline tag in the doc comment for a given element,
or |
| public Content | |
| public Content | Returns: the outputthe single-line summary message summary, Optional<String> the optional detail message which may contain preformatted text detail)Returns the output for an invalid tag. |
| private boolean | |
| private boolean | |
| pack-priv Content |
| configuration | back to summary |
|---|---|
| public final HtmlConfiguration configuration | |
| context | back to summary |
|---|---|
| public final TagletWriter. The context in which to generate the output for a series of | |
| htmlWriter | back to summary |
|---|---|
| public final HtmlDocletWriter htmlWriter | |
| options | back to summary |
|---|---|
| public final HtmlOptions options | |
| resources | back to summary |
|---|---|
| public final Resources resources | |
| TAG_LIST_ITEM_MAX_INLINE_LENGTH | back to summary |
|---|---|
| private static final int TAG_LIST_ITEM_MAX_INLINE_LENGTH | |
| utils | back to summary |
|---|---|
| public final Utils utils | |
| TagletWriter | back to summary |
|---|---|
| public TagletWriter(HtmlDocletWriter htmlWriter, boolean isFirstSentence) Creates a taglet writer.
| |
| TagletWriter | back to summary |
|---|---|
| public TagletWriter(HtmlDocletWriter htmlWriter, boolean isFirstSentence, boolean inSummary) Creates a taglet writer.
| |
| TagletWriter | back to summary |
|---|---|
| public TagletWriter(HtmlDocletWriter htmlWriter, TagletWriter. Creates a taglet writer.
| |
| commentTagsToOutput | back to summary |
|---|---|
| public Content commentTagsToOutput(DocTree holderTree, List<? extends DocTree> trees) Converts inline tags and text to content, expanding the inline tags along the way. Called wherever text can contain an inline tag, such as in comments or in free-form text arguments to block tags. | |
| commentTagsToOutput | back to summary |
|---|---|
| public Content commentTagsToOutput(Element element, List<? extends DocTree> trees) Converts inline tags and text to content, expanding the inline tags along the way. Called wherever text can contain an inline tag, such as in comments or in free-form text arguments to block tags. | |
| commentTagsToOutput | back to summary |
|---|---|
| public Content commentTagsToOutput(Element element, DocTree holder, List<? extends DocTree> trees, boolean isFirstSentence) Converts inline tags and text to content, expanding the inline tags along the way. Called wherever text can contain an inline tag, such as in comments or in free-form text arguments to non-inline tags.
| |
| createAnchorAndSearchIndex | back to summary |
|---|---|
| public Content createAnchorAndSearchIndex(Element element, String tagText, String desc, DocTree tree) | |
| createAnchorAndSearchIndex | back to summary |
|---|---|
| pack-priv Content createAnchorAndSearchIndex(Element element, String tagText, Content tagContent, String desc, DocTree tree) | |
| getBlockTagOutput | back to summary |
|---|---|
| public Content getBlockTagOutput(TagletManager tagletManager, Element element, List<Taglet> taglets) Returns the content generated from the block tags for a given element. The content is generated according to the order of the list of taglets. The result is a possibly-empty list of the output generated by each of the given taglets for all of the tags they individually support.
| |
| getContext | back to summary |
|---|---|
| public TagletWriter. | |
| getCurrentTypeElement | back to summary |
|---|---|
| public TypeElement getCurrentTypeElement() Returns the type element documented by the current
| |
| getHolderName | back to summary |
|---|---|
| public String getHolderName(Element element) | |
| getHolderName | back to summary |
|---|---|
| private String getHolderName(DocletElement de) | |
| getInlineTagOutput | back to summary |
|---|---|
| public Content getInlineTagOutput(Element holder, InlineTagTree inlineTag) Returns the content generated from an inline tag in the doc comment for a given element,
or
| |
| getOutputInstance | back to summary |
|---|---|
| public Content getOutputInstance() Returns an instance of an output object.
| |
| invalidTagOutput | back to summary |
|---|---|
| public Content invalidTagOutput(String summary, Optional<String> detail) Returns the output for an invalid tag. The returned content uses special styling to
highlight the problem. Depending on the presence of the | |
| isDifferentTypeElement | back to summary |
|---|---|
| private boolean isDifferentTypeElement(Element element) | |
| isLongOrHasComma | back to summary |
|---|---|
| private boolean isLongOrHasComma(Content c) | |
| tagList | back to summary |
|---|---|
| pack-priv Content tagList(List<Content> items) | |
DocTree nodes.
This context may be used to determine the content that should be generated from the tree nodes.
| Modifier and Type | Field and Description |
|---|---|
| public final boolean | inSummary
Whether the trees are appearing in the "summary" section of the page for a declaration. |
| public final Set | inTags
The set of enclosing kinds of tags. |
| public final boolean | isFirstSentence
Whether the trees are appearing in a context of just the first sentence, such as in the summary table of the enclosing element. |
| Access | Constructor and Description |
|---|---|
| public | Context(boolean
true if the trees are appearing in a context of just the
first sentence and false otherwisetrue if the trees are appearing in the "summary" section
of the page for a declaration and false otherwiseCreates an outermost context, with no enclosing tags. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public TagletWriter. |
| inSummary | back to summary |
|---|---|
| public final boolean inSummary Whether the trees are appearing in the "summary" section of the page for a declaration. | |
| inTags | back to summary |
|---|---|
| public final Set<DocTree. The set of enclosing kinds of tags. | |
| isFirstSentence | back to summary |
|---|---|
| public final boolean isFirstSentence Whether the trees are appearing in a context of just the first sentence, such as in the summary table of the enclosing element. | |
| Context | back to summary |
|---|---|
| public Context(boolean isFirstSentence, boolean inSummary) Creates an outermost context, with no enclosing tags.
| |
| Context | back to summary |
|---|---|
| private Context(boolean isFirstSentence, boolean inSummary, Set<DocTree. | |
| within | back to summary |
|---|---|
| public TagletWriter. Creates a new
| |