Skip to content

Commit

Permalink
Allow show annotations on fields and methods.
Browse files Browse the repository at this point in the history
Change-Id: I2556eae6cd8e84345040ad7a0c0bc7b33dda1536
  • Loading branch information
jham committed Nov 12, 2012
1 parent 5846022 commit ca151a9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/com/google/doclava/ClassInfo.java
Expand Up @@ -1196,11 +1196,11 @@ public boolean isHiddenImpl() {
return true;
}
if (cl.annotations() != null) {
for (AnnotationInstanceInfo info : cl.annotations()) {
if (Doclava.showAnnotations.contains(info.type().qualifiedName())) {
return false;
}
for (AnnotationInstanceInfo info : cl.annotations()) {
if (Doclava.showAnnotations.contains(info.type().qualifiedName())) {
return false;
}
}
}
if (cl.comment().isHidden()) {
return true;
Expand Down
12 changes: 12 additions & 0 deletions src/com/google/doclava/MemberInfo.java
Expand Up @@ -42,6 +42,18 @@ public MemberInfo(String rawCommentText, String name, String signature,

public abstract boolean isExecutable();

@Override
public boolean isHidden() {
if (mAnnotations != null) {
for (AnnotationInstanceInfo info : mAnnotations) {
if (Doclava.showAnnotations.contains(info.type().qualifiedName())) {
return false;
}
}
}
return super.isHidden();
}

public String anchor() {
if (mSignature != null) {
return mName + mSignature;
Expand Down

0 comments on commit ca151a9

Please sign in to comment.