Klasse TagletWriterImpl
java.lang.Object
org.jdrupes.mdoclet.internal.doclets.toolkit.taglets.TagletWriter
org.jdrupes.mdoclet.internal.doclets.formats.html.TagletWriterImpl
The taglet writer that writes HTML.
-
Feldübersicht
Von Klasse geerbte Felder org.jdrupes.mdoclet.internal.doclets.toolkit.taglets.TagletWriter
isFirstSentence
-
Konstruktorübersicht
KonstruktorBeschreibungTagletWriterImpl
(HtmlDocletWriter htmlWriter, boolean isFirstSentence) Creates a taglet writer.TagletWriterImpl
(HtmlDocletWriter htmlWriter, boolean isFirstSentence, boolean inSummary) Creates a taglet writer.TagletWriterImpl
(HtmlDocletWriter htmlWriter, org.jdrupes.mdoclet.internal.doclets.formats.html.TagletWriterImpl.Context context) Creates a taglet writer. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected Content
codeTagOutput
(Element element, LiteralTree tag) Returns the output for a {@code …} tag.commentTagsToOutput
(DocTree holder, List<? extends DocTree> tags) Converts inline tags and text to content, expanding the inline tags along the way.commentTagsToOutput
(Element holder, DocTree holderTag, List<? extends DocTree> tags, boolean isFirstSentence) Converts inline tags and text to content, expanding the inline tags along the way.commentTagsToOutput
(Element element, List<? extends DocTree> tags) Converts inline tags and text to content, expanding the inline tags along the way.Returns an instance of the configuration used for this doclet.deprecatedTagOutput
(Element element) Returns the output for a @deprecated tag.protected TypeElement
Returns the main type element of the current page or null for pages that don’t have one.Returns the output for a {@docRoot} tag.getLinkedElement
(Element referer, String signature) Returns an instance of an output object.Returns the header for the @param tags.Returns the header for the @throws tag.protected Content
indexTagOutput
(Element element, IndexTree tag) Returns the output for a {@index…} tag.protected Content
invalidTagOutput
(String summary, Optional<String> detail) Returns the output for an invalid tag.linkTagOutput
(Element element, LinkTree tag) Returns the output for a {@link …} or {@linkplain …} tag.protected Content
literalTagOutput
(Element element, LiteralTree tag) Returns the output for a {@literal …} tag.paramTagOutput
(Element element, ParamTree paramTag, String paramName) Returns the output for a @param tag.returnTagOutput
(Element element, ReturnTree returnTag, boolean inline) Returns the output for a @return tag.seeTagOutput
(Element holder, List<? extends SeeTree> seeTags) Returns the output for @see tags.simpleBlockTagOutput
(Element element, List<? extends DocTree> simpleTags, String header) Returns the output for a series of simple tags.protected Content
snippetTagOutput
(Element element, SnippetTree tag, StyledText content, String id, String lang) Returns the output for a {@snippet …} tag.specTagOutput
(Element holder, List<? extends SpecTree> specTags) Returns the output for one or more @spec tags.protected Content
systemPropertyTagOutput
(Element element, SystemPropertyTree tag) Returns the output for a {@systemProperty…} tag.throwsTagOutput
(TypeMirror throwsType, Optional<Content> content) Returns the output for a default @throws tag.valueTagOutput
(VariableElement field, String constantVal, boolean includeLink) Returns the output for a {@value} tag.Von Klasse geerbte Methoden org.jdrupes.mdoclet.internal.doclets.toolkit.taglets.TagletWriter
getBlockTagOutput, getInlineTagOutput
-
Konstruktordetails
-
TagletWriterImpl
Creates a taglet writer.- Parameter:
htmlWriter
- the HtmlDocletWriter for the pageisFirstSentence
- true if this taglet writer is being used for a “first sentence” summary
-
TagletWriterImpl
Creates a taglet writer.- Parameter:
htmlWriter
- the HtmlDocletWriter for the pageisFirstSentence
- true if this taglet writer is being used for a “first sentence” summary, and false otherwiseinSummary
- true if this taglet writer is being used for the content of a {@summary …} tag, and false otherwise
-
TagletWriterImpl
public TagletWriterImpl(HtmlDocletWriter htmlWriter, org.jdrupes.mdoclet.internal.doclets.formats.html.TagletWriterImpl.Context context) Creates a taglet writer.- Parameter:
htmlWriter
- the HtmlDocletWriter for the pagecontext
- the enclosing context for any tags
-
-
Methodendetails
-
getOutputInstance
Beschreibung aus Klasse kopiert:TagletWriter
Returns an instance of an output object.- Angegeben von:
getOutputInstance
in KlasseTagletWriter
- Gibt zurück:
- an instance of an output object
-
codeTagOutput
Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for a {@code …} tag.- Angegeben von:
codeTagOutput
in KlasseTagletWriter
- Parameter:
element
- The element that owns the doc commenttag
- the tag- Gibt zurück:
- the output
-
indexTagOutput
Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for a {@index…} tag.- Angegeben von:
indexTagOutput
in KlasseTagletWriter
- Parameter:
element
- The element that owns the doc commenttag
- the tag- Gibt zurück:
- the output
-
getDocRootOutput
Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for a {@docRoot} tag.- Angegeben von:
getDocRootOutput
in KlasseTagletWriter
- Gibt zurück:
- the output
-
deprecatedTagOutput
Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for a @deprecated tag.- Angegeben von:
deprecatedTagOutput
in KlasseTagletWriter
- Parameter:
element
- The element that owns the doc comment- Gibt zurück:
- the output
-
linkTagOutput
Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for a {@link …} or {@linkplain …} tag.- Angegeben von:
linkTagOutput
in KlasseTagletWriter
- Parameter:
element
- The element that owns the doc commenttag
- the tag- Gibt zurück:
- the output
-
literalTagOutput
Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for a {@literal …} tag.- Angegeben von:
literalTagOutput
in KlasseTagletWriter
- Parameter:
element
- The element that owns the doc commenttag
- the tag- Gibt zurück:
- the output
-
getParamHeader
Beschreibung aus Klasse kopiert:TagletWriter
Returns the header for the @param tags.- Angegeben von:
getParamHeader
in KlasseTagletWriter
- Parameter:
kind
- the kind of header that is required- Gibt zurück:
- the header
-
paramTagOutput
Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for a @param tag.Note we cannot rely on the name in the tag, because we might be inheriting the tag.
- Angegeben von:
paramTagOutput
in KlasseTagletWriter
- Parameter:
element
- The element that owns the doc commentparamTag
- the parameter to documentparamName
- the name of the parameter- Gibt zurück:
- the output
-
returnTagOutput
Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for a @return tag.- Angegeben von:
returnTagOutput
in KlasseTagletWriter
- Parameter:
element
- the element that owns the doc commentreturnTag
- the return tag to documentinline
- whether this should be written as an inline instance or block instance- Gibt zurück:
- the output
-
seeTagOutput
Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for @see tags.- Angegeben von:
seeTagOutput
in KlasseTagletWriter
- Parameter:
holder
- The element that owns the doc commentseeTags
- the list of tags- Gibt zurück:
- the output
-
simpleBlockTagOutput
public Content simpleBlockTagOutput(Element element, List<? extends DocTree> simpleTags, String header) Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for a series of simple tags.- Angegeben von:
simpleBlockTagOutput
in KlasseTagletWriter
- Parameter:
element
- The element that owns the doc commentsimpleTags
- the list of simple tagsheader
- the header for the series of tags- Gibt zurück:
- the output
-
snippetTagOutput
protected Content snippetTagOutput(Element element, SnippetTree tag, StyledText content, String id, String lang) Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for a {@snippet …} tag.- Angegeben von:
snippetTagOutput
in KlasseTagletWriter
- Parameter:
element
- The element that owns the doc commenttag
- the snippet tagid
- the value of the id attribute, or null if not definedlang
- the value of the lang attribute, or null if not defined- Gibt zurück:
- the output
-
getLinkedElement
-
specTagOutput
Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for one or more @spec tags.- Angegeben von:
specTagOutput
in KlasseTagletWriter
- Parameter:
holder
- the element that owns the doc commentspecTags
- the array of @spec tags.- Gibt zurück:
- the output
-
systemPropertyTagOutput
Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for a {@systemProperty…} tag.- Angegeben von:
systemPropertyTagOutput
in KlasseTagletWriter
- Parameter:
element
- the element that owns the doc commenttag
- the system property tag- Gibt zurück:
- the output
-
getThrowsHeader
Beschreibung aus Klasse kopiert:TagletWriter
Returns the header for the @throws tag.- Angegeben von:
getThrowsHeader
in KlasseTagletWriter
- Gibt zurück:
- the header for the throws tag
-
throwsTagOutput
Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for a default @throws tag.- Angegeben von:
throwsTagOutput
in KlasseTagletWriter
- Parameter:
throwsType
- the type that is throwncontent
- the optional content to add as a description- Gibt zurück:
- the output
-
valueTagOutput
Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for a {@value} tag.- Angegeben von:
valueTagOutput
in KlasseTagletWriter
- Parameter:
field
- the constant field that holds the value tagconstantVal
- the constant value to documentincludeLink
- true if we should link the constant text to the constant field itself- Gibt zurück:
- the output
-
invalidTagOutput
Beschreibung aus Klasse kopiert:TagletWriter
Returns the output for an invalid tag.The returned content uses special styling to highlight the problem. Depending on the presence of the detail string the method returns a plain text span or an expandable component.
- Angegeben von:
invalidTagOutput
in KlasseTagletWriter
- Parameter:
summary
- the single-line summary messagedetail
- the optional detail message which may contain preformatted text- Gibt zurück:
- the output
-
commentTagsToOutput
Beschreibung aus Klasse kopiert:TagletWriter
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.
- Angegeben von:
commentTagsToOutput
in KlasseTagletWriter
- Parameter:
holder
- the tree that holds the documentationtags
- list of DocTree nodes containing text and inline tags (often alternating) present in the text of interest for this doc- Gibt zurück:
- the generated content
-
commentTagsToOutput
Beschreibung aus Klasse kopiert:TagletWriter
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.
- Angegeben von:
commentTagsToOutput
in KlasseTagletWriter
- Parameter:
element
- The element that owns the documentationtags
- list of DocTree nodes containing text and inline tags (often alternating) present in the text of interest for this doc- Gibt zurück:
- the generated content
-
commentTagsToOutput
public Content commentTagsToOutput(Element holder, DocTree holderTag, List<? extends DocTree> tags, boolean isFirstSentence) Beschreibung aus Klasse kopiert:TagletWriter
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.
- Angegeben von:
commentTagsToOutput
in KlasseTagletWriter
- Parameter:
holder
- the element where comment residesholderTag
- the tag that holds the documentationtags
- array of text tags and inline tags (often alternating) present in the text of interest for this docisFirstSentence
- true if this is the first sentence- Gibt zurück:
- the generated content
-
configuration
Beschreibung aus Klasse kopiert:TagletWriter
Returns an instance of the configuration used for this doclet.- Angegeben von:
configuration
in KlasseTagletWriter
- Gibt zurück:
- an instance of the configuration used for this doclet
-
getCurrentPageElement
Beschreibung aus Klasse kopiert:TagletWriter
Returns the main type element of the current page or null for pages that don’t have one.- Angegeben von:
getCurrentPageElement
in KlasseTagletWriter
- Gibt zurück:
- the type element of the current page or null.
-
getHtmlWriter
-