Klasse IndexBuilder
java.lang.Object
org.jdrupes.mdoclet.internal.doclets.toolkit.util.IndexBuilder
- Bekannte direkte Unterklassen:
HtmlIndexBuilder
An alphabetical index of elements, search tags, and other items.
Two tables are maintained: one is indexed by the first character of each items name; the other is index by the item’s category, indicating the JavaScript file in which the item should be written.
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected final boolean
Build this index only for classes? -
Konstruktorübersicht
KonstruktorBeschreibungIndexBuilder
(BaseConfiguration configuration, boolean noDeprecated) Creates a new IndexBuilder.IndexBuilder
(BaseConfiguration configuration, boolean noDeprecated, boolean classesOnly) Creates a new IndexBuilder. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Adds an individual item to the two collections of items.void
Adds all the selected modules, packages, types and their members to the index, or just the type elements if classesOnly is true.Returns a sorted list of the first characters of the labels of index items.getItems
(DocTree.Kind kind) Returns a sorted list of items with a given kind of doc tree.Returns a sorted list of items whose names start with the provided character.Returns a sorted list of items in a given category.Returns a Comparator for IndexItems in the modules, packages, members, and search tags categories of the search index.Returns a Comparator for IndexItems in the types category of the search index.
-
Felddetails
-
classesOnly
Build this index only for classes?
-
-
Konstruktordetails
-
IndexBuilder
Creates a new IndexBuilder.- Parameter:
configuration
- the current configuration of the docletnoDeprecated
- true if -nodeprecated option is used, false otherwise
-
IndexBuilder
Creates a new IndexBuilder.- Parameter:
configuration
- the current configuration of the docletnoDeprecated
- true if -nodeprecated option is used, false otherwiseclassesOnly
- include only classes in index
-
-
Methodendetails
-
addElements
Adds all the selected modules, packages, types and their members to the index, or just the type elements if classesOnly is true. -
add
Adds an individual item to the two collections of items.- Parameter:
item
- the item to add
-
getItems
Returns a sorted list of items whose names start with the provided character.- Parameter:
key
- index key- Gibt zurück:
- list of items keyed by the provided character
-
getFirstCharacters
Returns a sorted list of the first characters of the labels of index items. -
getItems
Returns a sorted list of items in a given category.- Parameter:
cat
- the category- Gibt zurück:
- list of items keyed by the provided character
-
getItems
Returns a sorted list of items with a given kind of doc tree.- Parameter:
kind
- the kind- Gibt zurück:
- list of items keyed by the provided character
-
makeTypeSearchIndexComparator
Returns a Comparator for IndexItems in the types category of the search index.Items are compared by short name, falling back to the main comparator if names are equal.
- Gibt zurück:
- a Comparator
-
makeGenericSearchIndexComparator
Returns a Comparator for IndexItems in the modules, packages, members, and search tags categories of the search index.Items are compared by label, falling back to the main comparator if names are equal.
- Gibt zurück:
- a Comparator
-