Items are primarily defined by their position in the documentation, which is one of:
{@index ...}, {@systemProperty ...}, etc
All items have a "label", which is the presentation string used to display the item in the list of matching choices. The label is specified when the item is created. Items also have a "url" and a "description", which are provided by the specific doclet.
Each item provides details to be included in the search index files read and processed by JavaScript. Items have a "category", which is normally derived from the element kind or doc tree kind; it corresponds to the JavaScript file in which this item will be written.
Items for an element may have one or more of the following: "containing module", "containing package", "containing type".
Items for a node in a doc tree have a "holder", which is a text form of the enclosing element or page. They will typically also have a "description" derived from content in the doc tree node.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | IndexItem.
The "category" used to group items for the interactive search index. |
| private static class | |
| public static enum | IndexItem.
The kind of index item. |
| Modifier and Type | Field and Description |
|---|---|
| private String | containingClass
The containing class, if any, for the item. |
| private String | containingModule
The containing module, if any, for the item. |
| private String | containingPackage
The containing package, if any, for the item. |
| private final Element | element
The element for the item. |
| private final IndexItem. | kind
The kind of the item. |
| private final String | label
The presentation string for the item. |
| private String | url
The URL pointing to the element, doc tree or page being indexed. |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public IndexItem. | Returns: the categoryReturns the category for this item, that indicates the JavaScript file in which this item should be written. |
| protected IndexItem. | |
| protected IndexItem. | |
| public TypeElement | Returns: the type elementReturns the type element that is documented as containing a member element,
or |
| public String | Returns: the description of the tagReturns a description of the tag for this item or an empty string if no description is available for this item. |
| public DocTree | Returns: the documentation tree nodeReturns the documentation tree node for this item, of |
| public Element | |
| public String | Returns: the fully qualified namethe common utilities class utils)Returns the label with a fully-qualified type name. |
| public String | Returns: the description of the element that owns this itemReturns a description of the element owning the documentation comment for this item,
or |
| public IndexItem. | |
| public String | |
| public String | Returns: the simple nameReturns the part of the label after the last dot, or the whole label if there are no dots. |
| public String | Returns: the URL for this item, or an empty string if no value has been setReturns the URL for this item, or an empty string if no value has been set. |
| public boolean | Returns: true if this index is for an elementReturns |
| public boolean | |
| public boolean | Returns: true if this index is for a tag in a doc commentReturns |
| public static IndexItem | Returns: the itemthe element moduleElement, Utils the common utilities class utils)Creates an index item for a module element. |
| public static IndexItem | Returns: the itemthe element packageElement, Utils the common utilities class utils)Creates an index item for a package element. |
| public static IndexItem | Returns: the itemthe element typeElement, Utils the common utilities class utils)Creates an index item for a type element. |
| public static IndexItem | Returns: the itemthe element that contains the member typeElement, Element the member member, Utils the common utilities class utils)Creates an index item for a member element. |
| public static IndexItem | Returns: the itemthe element element, DocTree the node in the doc comment docTree, String the label label, String the holder for the comment holder, String the description of the item description, DocLink the root-relative link to the item in the generated docs link)Creates an index item for a node in the doc comment for an element. |
| public static IndexItem | |
| public IndexItem | Returns: this itemthe class c)Sets the name of the containing class for this item. |
| public IndexItem | Returns: this itemthe module m)Sets the name of the containing module for this item. |
| public IndexItem | Returns: this itemthe package p)Sets the name of the containing package for this item. |
| public IndexItem | |
| public String | Returns: a string representing this item in JSON notationReturns a string representing this item in JSON notation. |
| containingClass | back to summary |
|---|---|
| private String containingClass The containing class, if any, for the item. | |
| containingModule | back to summary |
|---|---|
| private String containingModule The containing module, if any, for the item. It will be empty if the element is not in a package, and may be omitted if the name of the package is unique. | |
| containingPackage | back to summary |
|---|---|
| private String containingPackage The containing package, if any, for the item. | |
| element | back to summary |
|---|---|
| private final Element element The element for the item. It is only null for items for summary pages that are not associated with any specific element. | |
| kind | back to summary |
|---|---|
| private final IndexItem. The kind of the item. | |
| label | back to summary |
|---|---|
| private final String label The presentation string for the item. It must be non-empty. | |
| url | back to summary |
|---|---|
| private String url The URL pointing to the element, doc tree or page being indexed. It may be empty if the information can be determined from other fields. | |
| IndexItem | back to summary |
|---|---|
| private IndexItem(Element element, String label, IndexItem. | |
| IndexItem | back to summary |
|---|---|
| private IndexItem(Element element, String label, IndexItem. | |
| escapeQuotes | back to summary |
|---|---|
| private static String escapeQuotes(String s) | |
| getCategory | back to summary |
|---|---|
| public IndexItem. Returns the category for this item, that indicates the JavaScript file in which this item should be written. | |
| getCategory | back to summary |
|---|---|
| protected IndexItem. | |
| getCategory | back to summary |
|---|---|
| protected IndexItem. | |
| getContainingTypeElement | back to summary |
|---|---|
| public TypeElement getContainingTypeElement() Returns the type element that is documented as containing a member element,
or
| |
| getDescription | back to summary |
|---|---|
| public String getDescription() Returns a description of the tag for this item or an empty string if no description is available for this item.
| |
| getDocTree | back to summary |
|---|---|
| public DocTree getDocTree() Returns the documentation tree node for this item, of
| |
| getElement | back to summary |
|---|---|
| public Element getElement() Returns the element associate with this item, or
| |
| getFullyQualifiedLabel | back to summary |
|---|---|
| public String getFullyQualifiedLabel(Utils utils) Returns the label with a fully-qualified type name. (Used to determine if labels are unique or need to be qualified.) | |
| getHolder | back to summary |
|---|---|
| public String getHolder() Returns a description of the element owning the documentation comment for this item,
or
| |
| getKind | back to summary |
|---|---|
| public IndexItem. Returns the kind of this item. | |
| getLabel | back to summary |
|---|---|
| public String getLabel() Returns the label of the item.
| |
| getSimpleName | back to summary |
|---|---|
| public String getSimpleName() Returns the part of the label after the last dot, or the whole label if there are no dots.
| |
| getUrl | back to summary |
|---|---|
| public String getUrl() Returns the URL for this item, or an empty string if no value has been set.
| |
| isElementItem | back to summary |
|---|---|
| public boolean isElementItem() Returns
| |
| isKind | back to summary |
|---|---|
| public boolean isKind(DocTree. Returns
| |
| isTagItem | back to summary |
|---|---|
| public boolean isTagItem() Returns
| |
| of | back to summary |
|---|---|
| public static IndexItem of(ModuleElement moduleElement, Utils utils) Creates an index item for a module element.
| |
| of | back to summary |
|---|---|
| public static IndexItem of(PackageElement packageElement, Utils utils) Creates an index item for a package element.
| |
| of | back to summary |
|---|---|
| public static IndexItem of(TypeElement typeElement, Utils utils) Creates an index item for a type element. Note use
| |
| of | back to summary |
|---|---|
| public static IndexItem of(TypeElement typeElement, Element member, Utils utils) Creates an index item for a member element. Note the given type element may not be the same as the enclosing element of the member in cases where the enclosing element is not visible in the documentation.
| |
| of | back to summary |
|---|---|
| public static IndexItem of(Element element, DocTree docTree, String label, String holder, String description, DocLink link) Creates an index item for a node in the doc comment for an element. The node should only be one that gives rise to an entry in the index. | |
| of | back to summary |
|---|---|
| public static IndexItem of(IndexItem. Creates an index item for a summary page, that is not associated with any element or node in a doc comment. | |
| setContainingClass | back to summary |
|---|---|
| public IndexItem setContainingClass(String c) Sets the name of the containing class for this item. | |
| setContainingModule | back to summary |
|---|---|
| public IndexItem setContainingModule(String m) Sets the name of the containing module for this item. | |
| setContainingPackage | back to summary |
|---|---|
| public IndexItem setContainingPackage(String p) Sets the name of the containing package for this item. | |
| setUrl | back to summary |
|---|---|
| public IndexItem setUrl(String u) Sets the URL for the item, when it cannot otherwise be inferred from other fields. | |
| toJSON | back to summary |
|---|---|
| public String toJSON() Returns a string representing this item in JSON notation.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IndexItem. | |
| public static IndexItem. |
| MEMBERS | back to summary |
|---|---|
| public static final IndexItem. | |
| MODULES | back to summary |
|---|---|
| public static final IndexItem. | |
| PACKAGES | back to summary |
|---|---|
| public static final IndexItem. | |
| TAGS | back to summary |
|---|---|
| public static final IndexItem. | |
| TYPES | back to summary |
|---|---|
| public static final IndexItem. | |
| Category | back to summary |
|---|---|
| private Category() | |
| valueOf | back to summary |
|---|---|
| public static IndexItem. | |
| values | back to summary |
|---|---|
| public static IndexItem. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv StringBuilder |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public IndexItem. | |
| public String |
| b | back to summary |
|---|---|
| pack-priv StringBuilder b | |
| JSONBuilder | back to summary |
|---|---|
| private JSONBuilder() | |
| append | back to summary |
|---|---|
| public IndexItem. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. | |
| public static final IndexItem. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IndexItem. | |
| public static IndexItem. | |
| public static IndexItem. | |
| public static IndexItem. |
| ANNOTATION_ELEMENT | back to summary |
|---|---|
| public static final IndexItem. | |
| ANNOTATION_TYPE | back to summary |
|---|---|
| public static final IndexItem. | |
| CLASS | back to summary |
|---|---|
| public static final IndexItem. | |
| CONSTRUCTOR | back to summary |
|---|---|
| public static final IndexItem. | |
| ENUM | back to summary |
|---|---|
| public static final IndexItem. | |
| ENUM_CONSTANT | back to summary |
|---|---|
| public static final IndexItem. | |
| EXCEPTION_CLASS | back to summary |
|---|---|
| public static final IndexItem. | |
| EXTERNAL_SPEC | back to summary |
|---|---|
| public static final IndexItem. | |
| FIELD | back to summary |
|---|---|
| public static final IndexItem. | |
| INTERFACE | back to summary |
|---|---|
| public static final IndexItem. | |
| METHOD | back to summary |
|---|---|
| public static final IndexItem. | |
| RECORD | back to summary |
|---|---|
| public static final IndexItem. | |
| RECORD_COMPONENT | back to summary |
|---|---|
| public static final IndexItem. | |
| SEARCH_ITEM | back to summary |
|---|---|
| public static final IndexItem. | |
| SECTION | back to summary |
|---|---|
| public static final IndexItem. | |
| STATIC_FIELD | back to summary |
|---|---|
| public static final IndexItem. | |
| STATIC_METHOD | back to summary |
|---|---|
| public static final IndexItem. | |
| SUMMARY_PAGE | back to summary |
|---|---|
| public static final IndexItem. | |
| SYSTEM_PROPERTY | back to summary |
|---|---|
| public static final IndexItem. | |
| Kind | back to summary |
|---|---|
| private Kind() | |
| ofDocTree | back to summary |
|---|---|
| public static IndexItem. Returns the kind of index item for a doc comment tag. | |
| ofElement | back to summary |
|---|---|
| public static IndexItem. Returns the kind of index item for a program element. | |
| valueOf | back to summary |
|---|---|
| public static IndexItem. | |
| values | back to summary |
|---|---|
| public static IndexItem. | |