Methods Summary |
---|
private void | fillMemberLevelMap(java.util.List list, java.lang.String level)
for (int i = 0; i < list.size(); i++) {
ProgramElementDoc member = ((ProgramElementDoc)list.get(i));
String membername = getDocName(member);
Map memberLevelMap = (Map)(memberNameMap.get(membername));
if (memberLevelMap == null) {
memberLevelMap = new HashMap();
memberNameMap.put(membername, memberLevelMap);
}
memberLevelMap.put(member, level);
}
|
protected static java.lang.String | getDocName(com.sun.javadoc.ProgramElementDoc doc)Return the name for each doc item. For example,
if the doc item is of type PackageDoc for "java.lang" return string
"java.lang", if the doc item is ClassDoc for "java.lang.Object" return
string "java.lang.Object", if the doc item is MethodDoc for method
"wait()" in java.lang.Object class, then return string wait()".
if (doc.isMethod() || doc.isConstructor()) {
return doc.name() + ((ExecutableMemberDoc)doc).signature();
} else if (doc.isField()) {
return doc.name();
} else { // it's a class or interface
return "clint" + doc.name();
}
|
public java.util.List | getMembersFor(com.sun.javadoc.ClassDoc cd)
ClassMembers clmembers = (ClassMembers)(classMap.get(cd));
if (clmembers == null) {
return new ArrayList();
}
return clmembers.getMembers();
|
public java.util.List | getVisibleClassesList()
sort(visibleClasses);
return visibleClasses;
|
private void | sort(java.util.List list)Sort the given mixed list of classes and interfaces to a list of
classes followed by interfaces traversed. Don't sort alphabetically.
List classes = new ArrayList();
List interfaces = new ArrayList();
for (int i = 0; i < list.size(); i++) {
ClassDoc cd = (ClassDoc)list.get(i);
if (cd.isClass()) {
classes.add(cd);
} else {
interfaces.add(cd);
}
}
list.clear();
list.addAll(classes);
list.addAll(interfaces);
|