Looks for @Hidden annotation on all classes and excludes them from the docs

This commit is contained in:
Mark DePristo 2011-09-23 09:03:04 -04:00
parent 15a410b24b
commit dfce301beb
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,8 @@ public class GenericDocumentationHandler extends DocumentedGATKFeatureHandler {
public boolean includeInDocs(ClassDoc doc) {
try {
Class type = HelpUtils.getClassForDoc(doc);
return JVMUtils.isConcrete(type);
boolean hidden = ! getDoclet().showHiddenFeatures() && type.isAnnotationPresent(Hidden.class);
return ! hidden && JVMUtils.isConcrete(type);
} catch ( ClassNotFoundException e ) {
return false;
}