Methods Summary |
---|
private void | buildDeprecatedAPIInfo(com.sun.javadoc.RootDoc root)Build the sorted list of all the deprecated APIs in this run.
Build separate lists for deprecated classes, constructors, methods and
fields.
ClassDoc[] classes = root.classes();
for (int i = 0; i < classes.length; i++) {
ClassDoc cd = classes[i];
if (cd.tags("deprecated").length > 0) {
if (cd.isOrdinaryClass()) {
deprecatedclasses.add(cd);
} else if (cd.isInterface()) {
deprecatedinterfaces.add(cd);
} else if (cd.isException()) {
deprecatedexceptions.add(cd);
} else {
deprecatederrors.add(cd);
}
}
composeDeprecatedList(deprecatedfields, cd.fields());
composeDeprecatedList(deprecatedmethods, cd.methods());
composeDeprecatedList(deprecatedconstructors, cd.constructors());
}
sortDeprecatedLists();
|
private void | composeDeprecatedList(java.util.List list, com.sun.javadoc.MemberDoc[] members)Add the members into a single list of deprecated members.
for (int i = 0; i < members.length; i++) {
if (members[i].tags("deprecated").length > 0) {
list.add(members[i]);
}
}
|
public java.util.List | getDeprecatedClasses()Return the list of deprecated classes.
return deprecatedclasses;
|
public java.util.List | getDeprecatedConstructors()Return the list of deprecated constructors.
return deprecatedconstructors;
|
public java.util.List | getDeprecatedErrors()Return the list of deprecated errors.
return deprecatederrors;
|
public java.util.List | getDeprecatedExceptions()Return the list of deprecated exceptions.
return deprecatedexceptions;
|
public java.util.List | getDeprecatedFields()Return the list of deprecated fields.
return deprecatedfields;
|
public java.util.List | getDeprecatedInterfaces()Return the list of deprecated interfaces.
return deprecatedinterfaces;
|
public java.util.List | getDeprecatedMethods()Return the list of deprecated methods.
return deprecatedmethods;
|
private void | sortDeprecatedLists()Sort the deprecated lists for class kinds, fields, methods and
constructors.
Collections.sort(deprecatedclasses);
Collections.sort(deprecatedinterfaces);
Collections.sort(deprecatedexceptions);
Collections.sort(deprecatederrors);
Collections.sort(deprecatedfields);
Collections.sort(deprecatedmethods);
Collections.sort(deprecatedconstructors);
|