void addClassAnnotation ( final AnnotationInfo classAnnotationInfo , final Map < String , ClassInfo > classNameToClassInfo ) { final ClassInfo annotationClassInfo = getOrCreateClassInfo ( classAnnotationInfo . getName ( ) , ANNOTATION_CLASS_MODIFIER , classNameToClassInfo ) ; if ( this . annotationInfo == null ) { this . annotationInfo = new AnnotationInfoList ( 2 ) ; } this . annotationInfo . add ( classAnnotationInfo ) ; this . addRelatedClass ( RelType . CLASS_ANNOTATIONS , annotationClassInfo ) ; annotationClassInfo . addRelatedClass ( RelType . CLASSES_WITH_ANNOTATION , this ) ; // Record use of @Inherited meta-annotation if ( classAnnotationInfo . getName ( ) . equals ( Inherited . class . getName ( ) ) ) { isInherited = true ; } }
Add an annotation to this class .