|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.doclets.internal.toolkit.util.IndexBuilder
public class IndexBuilder
Build the mapping of each Unicode character with it's member lists containing members names starting with it. Also build a list for all the Unicode characters which start a member name. Member name is classkind or field or method or constructor name. This code is not part of an API. It is implementation that is subject to change. Do not use it as an API
Character| Nested Class Summary | |
|---|---|
private class |
IndexBuilder.DocComparator
A comparator used to sort classes and members. |
| Field Summary | |
|---|---|
private boolean |
classesOnly
Build this Index only for classes? |
protected java.lang.Object[] |
elements
|
private java.util.Map<java.lang.Character,java.util.List<Doc>> |
indexmap
Mapping of each Unicode Character with the member list containing members with names starting with it. |
private boolean |
noDeprecated
Don't generate deprecated information if true. |
| Constructor Summary | |
|---|---|
IndexBuilder(Configuration configuration,
boolean noDeprecated)
Constructor. |
|
IndexBuilder(Configuration configuration,
boolean noDeprecated,
boolean classesOnly)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
adjustIndexMap(Doc[] elements)
Adjust list of members according to their names. |
protected void |
buildIndexMap(RootDoc root)
Get all the members in all the Packages and all the Classes given on the command line. |
java.lang.Object[] |
elements()
Array of IndexMap keys, Unicode characters. |
java.util.Map<java.lang.Character,java.util.List<Doc>> |
getIndexMap()
Return a map of all the individual member lists with Unicode character. |
java.util.List<Doc> |
getMemberList(java.lang.Character index)
Return the sorted list of members, for passed Unicode Character. |
protected void |
putMembersInIndexMap(ClassDoc classdoc)
Put all the members(fields, methods and constructors) in the classdoc to the indexmap. |
protected boolean |
shouldAddToIndexMap(Doc element)
Should this doc element be added to the index map? |
protected void |
sortIndexMap()
Sort the index map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Map<java.lang.Character,java.util.List<Doc>> indexmap
private boolean noDeprecated
private boolean classesOnly
protected final java.lang.Object[] elements
| Constructor Detail |
|---|
public IndexBuilder(Configuration configuration,
boolean noDeprecated)
configuration - the current configuration of the doclet.noDeprecated - true if -nodeprecated option is used,
false otherwise.
public IndexBuilder(Configuration configuration,
boolean noDeprecated,
boolean classesOnly)
configuration - the current configuration of the doclet.noDeprecated - true if -nodeprecated option is used,
false otherwise.classesOnly - Include only classes in index.| Method Detail |
|---|
protected void sortIndexMap()
protected void buildIndexMap(RootDoc root)
root - Root of the documemt.protected void putMembersInIndexMap(ClassDoc classdoc)
classdoc - ClassDoc whose members will be added to the indexmap.protected void adjustIndexMap(Doc[] elements)
elements - Array of members.protected boolean shouldAddToIndexMap(Doc element)
public java.util.Map<java.lang.Character,java.util.List<Doc>> getIndexMap()
public java.util.List<Doc> getMemberList(java.lang.Character index)
index - index Unicode character.
public java.lang.Object[] elements()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||