private void visitClassAnnotation(DirectClassFile cf, BaseAnnotations ann) {

    if (!args.eTypes.contains(ElementType.TYPE)) {
      return;
    }

    for (Annotation anAnn : ann.getAnnotations().getAnnotations()) {
      String annClassName = anAnn.getType().getClassType().getClassName();
      if (args.aclass.equals(annClassName)) {
        printMatch(cf);
      }
    }
  }
Inspects a class annotation.

@param cf {@code non-null;} class file
@param ann {@code non-null;} annotation
android/android_framework/dex-maker/src/main/java/com/android/dx/command/annotool/AnnotationLister.java