public int getClassAnnotationCount() {
   if (classAnnotations == null) {
     return 0;
   }
   AnnotationItem[] annotations = classAnnotations.getAnnotations();
   return annotations.length;
 }