Klasse IndexWriter
java.lang.Object
org.jdrupes.mdoclet.internal.doclets.formats.html.HtmlDocletWriter
org.jdrupes.mdoclet.internal.doclets.formats.html.IndexWriter
Generator for either a single index or split index for all
documented elements, terms defined in some documentation comments,
and summary pages.
- Siehe auch:
-
Feldübersicht
Von Klasse geerbte Felder org.jdrupes.mdoclet.internal.doclets.formats.html.HtmlDocletWriter
comparators, configuration, contents, docPaths, filename, htmlIds, links, mainBodyScript, messages, options, path, pathToRoot, resources, utils, winTitle
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungprotected
IndexWriter
(HtmlConfiguration configuration, DocPath path) Creates a writer that can write a page containing some or all of the overall index. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected void
addClassInfo
(TypeElement te, Content content) Adds information for the given type element.protected void
addComment
(Element element, Content content) Adds a comment for an element in the index.protected void
addContents
(char ch, SortedSet<IndexItem> items, Content content) Adds a set of items to the page.protected void
addDescription
(IndexItem indexItem, Content dl) Adds the description for an index item into a list.protected void
addElementDescription
(IndexItem item, Content target) Add one line summary comment for the item.protected void
addHeading
(char ch, Content content) Adds a heading containing the first character for a set of items.protected void
addLinksForIndexes
(List<Character> allFirstCharacters, Content content) Add links for all the index files, based on the first character of the names of the items.protected void
addMemberDesc
(Element member, TypeElement enclosing, Content content) Adds a description for a member element.protected void
addTagDescription
(IndexItem item, Content target) Adds a description for an item found in a documentation comment.static void
generate
(HtmlConfiguration configuration) Generates the main index of all documented elements, terms defined in some documentation comments, and summary pages.protected void
generateIndexFile
(List<Character> allFirstCharacters, List<Character> displayFirstCharacters) Generates a page containing some or all of the overall index.Von Klasse geerbte Methoden org.jdrupes.mdoclet.internal.doclets.formats.html.HtmlDocletWriter
addInlineComment, addInlineComment, addInlineDeprecatedComment, addPreQualifiedClassLink, addPreQualifiedClassLink, addPreQualifiedStrongClassLink, addPreviewComment, addPreviewInfo, addPreviewSummary, addSrcLink, addSummaryComment, addSummaryComment, addSummaryDeprecatedComment, addTagsInfo, commentTagsToContent, commentTagsToContent, commentTagsToContent, getAnnotations, getBlockTagOutput, getBlockTagOutput, getBody, getBodyStyle, getCrossClassLink, getCrossModuleLink, getCrossPackageLink, getCurrentPageElement, getDeprecatedPhrase, getDocLink, getDocLink, getDocLink, getDocLink, getDocLink, getEnclosingPackageName, getFooter, getHeader, getHeader, getLink, getLocalizedPackageName, getModuleLink, getModuleLink, getNavBar, getNavLinkToOverviewTree, getPackageLabel, getPackageLink, getPackageLink, getPackageTableHeader, getPreQualifiedClassLink, getQualifiedClassLink, getTagletWriterInstance, getTagletWriterInstance, getTypeParameterLinks, getWindowTitle, hasSerializationOverviewTags, invalidTagOutput, pathString, pathString, printHtmlDocument, printHtmlDocument, printHtmlDocument, replaceDocRootDir, resolveExternalSpecURI
-
Felddetails
-
mainIndex
-
splitIndex
-
-
Konstruktordetails
-
IndexWriter
Creates a writer that can write a page containing some or all of the overall index.- Parameter:
configuration
- the current configurationpath
- the file to be generated
-
-
Methodendetails
-
generate
Generates the main index of all documented elements, terms defined in some documentation comments, and summary pages.If
HtmlOptions.splitIndex()
is true, a separate page is generated for each initial letter; otherwise, a single page is generated for all items in the index.- Parameter:
configuration
- the configuration- Löst aus:
DocFileIOException
- if an error occurs while writing the files
-
generateIndexFile
protected void generateIndexFile(List<Character> allFirstCharacters, List<Character> displayFirstCharacters) throws DocFileIOException Generates a page containing some or all of the overall index.- Parameter:
allFirstCharacters
- the initial characters of all index itemsdisplayFirstCharacters
- the initial characters of the index items to appear on this page- Löst aus:
DocFileIOException
- if an error occurs while writing the page
-
addContents
Adds a set of items to the page.- Parameter:
ch
- the first character of the names of the itemsitems
- the itemscontent
- the content to which to add the items
-
addHeading
Adds a heading containing the first character for a set of items.- Parameter:
ch
- the first character of the names of the itemscontent
- the content to which to add the items
-
addDescription
Adds the description for an index item into a list.- Parameter:
indexItem
- the itemdl
- the list
-
addElementDescription
Add one line summary comment for the item.- Parameter:
item
- the item to be documentedtarget
- the content to which the description will be added
-
addClassInfo
Adds information for the given type element.- Parameter:
te
- the elementcontent
- the content to which the class info will be added
-
addTagDescription
Adds a description for an item found in a documentation comment.- Parameter:
item
- the itemtarget
- the list to which to add the description
-
addComment
Adds a comment for an element in the index.If the element is deprecated and it has a @deprecated tag, use that comment; otherwise, if the containing class for this element is deprecated, then add the word “Deprecated.” at the start and then print the normal comment.
- Parameter:
element
- the elementcontent
- the content to which the comment will be added
-
addMemberDesc
Adds a description for a member element.- Parameter:
member
- the elementenclosing
- the enclosing type elementcontent
- the content to which the member description will be added
-
addLinksForIndexes
Add links for all the index files, based on the first character of the names of the items.- Parameter:
allFirstCharacters
- the list of all first characters to be linkedcontent
- the content to which the links for indexes will be added
-