Class IndexBuilder
- java.lang.Object
-
- gw.gosudoc.com.sun.tools.doclets.internal.toolkit.util.IndexBuilder
-
@Deprecated public class IndexBuilder extends java.lang.ObjectDeprecated.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 is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
- Since:
- 1.2
- See Also:
Character
-
-
Field Summary
Fields Modifier and Type Field Description private booleanclassesOnlyDeprecated.Build this Index only for classes?private ConfigurationconfigurationDeprecated.protected java.lang.Object[]elementsDeprecated.private java.util.Map<java.lang.Character,java.util.List<Doc>>indexmapDeprecated.Mapping of each Unicode Character with the member list containing members with names starting with it.private booleanjavafxDeprecated.Indicates javafx mode.private booleannoDeprecatedDeprecated.Don't generate deprecated information if true.
-
Constructor Summary
Constructors Constructor Description IndexBuilder(Configuration configuration, boolean noDeprecated)Deprecated.Constructor.IndexBuilder(Configuration configuration, boolean noDeprecated, boolean classesOnly)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidadjustIndexMap(Doc[] elements)Deprecated.Adjust list of members according to their names.protected voidbuildIndexMap(RootDoc root)Deprecated.Get all the members in all the Packages and all the Classes given on the command line.java.lang.Object[]elements()Deprecated.Array of IndexMap keys, Unicode characters.java.util.Map<java.lang.Character,java.util.List<Doc>>getIndexMap()Deprecated.Return a map of all the individual member lists with Unicode character.java.util.List<Doc>getMemberList(java.lang.Character index)Deprecated.Return the sorted list of members, for passed Unicode Character.protected voidputMembersInIndexMap(ClassDoc classdoc)Deprecated.Put all the members(fields, methods and constructors) in the classdoc to the indexmap.protected booleanshouldAddToIndexMap(Doc element)Deprecated.Should this doc element be added to the index map?protected voidsortIndexMap()Deprecated.Sort the index map.
-
-
-
Field Detail
-
indexmap
private java.util.Map<java.lang.Character,java.util.List<Doc>> indexmap
Deprecated.Mapping of each Unicode Character with the member list containing members with names starting with it.
-
noDeprecated
private boolean noDeprecated
Deprecated.Don't generate deprecated information if true.
-
classesOnly
private boolean classesOnly
Deprecated.Build this Index only for classes?
-
javafx
private boolean javafx
Deprecated.Indicates javafx mode.
-
elements
protected final java.lang.Object[] elements
Deprecated.
-
configuration
private final Configuration configuration
Deprecated.
-
-
Constructor Detail
-
IndexBuilder
public IndexBuilder(Configuration configuration, boolean noDeprecated)
Deprecated.Constructor. Build the index map.- Parameters:
configuration- the current configuration of the doclet.noDeprecated- true if -nodeprecated option is used, false otherwise.
-
IndexBuilder
public IndexBuilder(Configuration configuration, boolean noDeprecated, boolean classesOnly)
Deprecated.Constructor. Build the index map.- Parameters:
configuration- the current configuration of the doclet.noDeprecated- true if -nodeprecated option is used, false otherwise.classesOnly- Include only classes in index.
-
-
Method Detail
-
sortIndexMap
protected void sortIndexMap()
Deprecated.Sort the index map. Traverse the index map for all it's elements and sort each element which is a list.
-
buildIndexMap
protected void buildIndexMap(RootDoc root)
Deprecated.Get all the members in all the Packages and all the Classes given on the command line. Form separate list of those members depending upon their names.- Parameters:
root- Root of the documemt.
-
putMembersInIndexMap
protected void putMembersInIndexMap(ClassDoc classdoc)
Deprecated.Put all the members(fields, methods and constructors) in the classdoc to the indexmap.- Parameters:
classdoc- ClassDoc whose members will be added to the indexmap.
-
adjustIndexMap
protected void adjustIndexMap(Doc[] elements)
Deprecated.Adjust list of members according to their names. Check the first character in a member name, and then add the member to a list of members for that particular unicode character.- Parameters:
elements- Array of members.
-
shouldAddToIndexMap
protected boolean shouldAddToIndexMap(Doc element)
Deprecated.Should this doc element be added to the index map?
-
getIndexMap
public java.util.Map<java.lang.Character,java.util.List<Doc>> getIndexMap()
Deprecated.Return a map of all the individual member lists with Unicode character.- Returns:
- Map index map.
-
getMemberList
public java.util.List<Doc> getMemberList(java.lang.Character index)
Deprecated.Return the sorted list of members, for passed Unicode Character.- Parameters:
index- index Unicode character.- Returns:
- List member list for specific Unicode character.
-
elements
public java.lang.Object[] elements()
Deprecated.Array of IndexMap keys, Unicode characters.
-
-