langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java
--- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java Thu Nov 19 13:14:16 2015 -0800
+++ b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java Fri Nov 20 20:55:07 2015 +0000
@@ -201,6 +201,18 @@
*/
public ClassDoc currentcd = null; // Set this classdoc in the ClassWriter.
+ protected List<SearchIndexItem> memberSearchIndex = new ArrayList<>();
+
+ protected List<SearchIndexItem> packageSearchIndex = new ArrayList<>();
+
+ protected List<SearchIndexItem> tagSearchIndex = new ArrayList<>();
+
+ protected List<SearchIndexItem> typeSearchIndex = new ArrayList<>();
+
+ protected Map<Character,List<SearchIndexItem>> tagSearchIndexMap = new HashMap<>();
+
+ protected Set<Character> tagSearchIndexKeys;
+
/**
* Constructor. Initializes resource for the
* {@link com.sun.tools.doclets.internal.toolkit.util.MessageRetriever MessageRetriever}.
@@ -628,4 +640,21 @@
public Content newContent() {
return new ContentBuilder();
}
+
+ protected void buildSearchTagIndex() {
+ for (SearchIndexItem sii : tagSearchIndex) {
+ String tagLabel = sii.getLabel();
+ char ch = (tagLabel.length() == 0)
+ ? '*'
+ : Character.toUpperCase(tagLabel.charAt(0));
+ Character unicode = ch;
+ List<SearchIndexItem> list = tagSearchIndexMap.get(unicode);
+ if (list == null) {
+ list = new ArrayList<>();
+ tagSearchIndexMap.put(unicode, list);
+ }
+ list.add(sii);
+ }
+ tagSearchIndexKeys = tagSearchIndexMap.keySet();
+ }
}