| Modifier and Type | Field and Description |
|---|---|
| protected final BaseConfiguration | |
| private final Map | itemsByCategory
Sets of items keyed by the |
| private final Map | itemsByFirstChar
Sets of items keyed by the first character of the names (labels) of the items in those sets. |
| private final Comparator | mainComparator
The comparator used for the sets in |
| private final boolean | noDeprecated
Don't generate deprecated information if true. |
| protected final Utils |
| Access | Constructor and Description |
|---|---|
| public | IndexBuilder(BaseConfiguration
the current configuration of the doclet configuration)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public List | |
| private String | |
| public SortedSet | |
| public SortedSet | |
| public SortedSet | |
| private void | indexMembers(TypeElement
TypeElement whose members are to be indexed te)Indexes all the members (fields, methods, constructors, etc.) of the provided type element. |
| private void | indexMembers(TypeElement typeElement, Iterable<? extends Element>
a collection of elements members)Indexes the provided elements. |
| private void | |
| private void | |
| private void | |
| private static Character | |
| private Comparator | Returns: a comparator for index page itemsReturns a comparator for the |
| public Comparator | Returns: a ComparatorReturns a Comparator for IndexItems in the modules, packages, members, and search tags categories of the search index. |
| public Comparator | Returns: a ComparatorReturns a Comparator for IndexItems in the types category of the search index. |
| private boolean |
| configuration | back to summary |
|---|---|
| protected final BaseConfiguration configuration | |
| itemsByCategory | back to summary |
|---|---|
| private final Map<IndexItem. Sets of items keyed by the | |
| itemsByFirstChar | back to summary |
|---|---|
| private final Map<Character, SortedSet<IndexItem>> itemsByFirstChar Sets of items keyed by the first character of the names (labels) of the items in those sets. | |
| mainComparator | back to summary |
|---|---|
| private final Comparator<IndexItem> mainComparator The comparator used for the sets in | |
| noDeprecated | back to summary |
|---|---|
| private final boolean noDeprecated Don't generate deprecated information if true. | |
| utils | back to summary |
|---|---|
| protected final Utils utils | |
| IndexBuilder | back to summary |
|---|---|
| public IndexBuilder(BaseConfiguration configuration) Creates a new
| |
| add | back to summary |
|---|---|
| public void add(IndexItem item) Adds an individual item to the two collections of items.
| |
| addElements | back to summary |
|---|---|
| public void addElements() Adds all the selected modules, packages, types and their members to the index. | |
| getFirstCharacters | back to summary |
|---|---|
| public List Returns a sorted list of the first characters of the labels of index items. | |
| getIndexItemKey | back to summary |
|---|---|
| private String getIndexItemKey(IndexItem ii) | |
| getItems | back to summary |
|---|---|
| public SortedSet Returns a sorted list of items whose names start with the provided character. | |
| getItems | back to summary |
|---|---|
| public SortedSet Returns a sorted list of items in a given category. | |
| getItems | back to summary |
|---|---|
| public SortedSet Returns a sorted list of items with a given kind of doc tree. | |
| indexMembers | back to summary |
|---|---|
| private void indexMembers(TypeElement te) Indexes all the members (fields, methods, constructors, etc.) of the provided type element.
| |
| indexMembers | back to summary |
|---|---|
| private void indexMembers(TypeElement typeElement, Iterable<? extends Element> members) Indexes the provided elements. | |
| indexModules | back to summary |
|---|---|
| private void indexModules() Indexes all the modules. | |
| indexPackage | back to summary |
|---|---|
| private void indexPackage(PackageElement packageElement) Index the given package element.
| |
| indexTypeElements | back to summary |
|---|---|
| private void indexTypeElements(Iterable<TypeElement> elements) Index the given type elements.
| |
| keyCharacter | back to summary |
|---|---|
| private static Character keyCharacter(String s) | |
| makeComparator | back to summary |
|---|---|
| private Comparator Returns a comparator for the
| |
| makeGenericSearchIndexComparator | back to summary |
|---|---|
| public Comparator 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.
| |
| makeTypeSearchIndexComparator | back to summary |
|---|---|
| public Comparator 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.
| |
| shouldIndex | back to summary |
|---|---|
| private boolean shouldIndex(Element element) Should this element be added to the index? | |