private static Map < String , Object > getAnnoAsMap ( Object targetClass , String annoFullName ) { Annotation [ ] anno = getAnnotations ( targetClass ) ; for ( Annotation a : anno ) { Class < ? extends Annotation > type = a . annotationType ( ) ; if ( annoFullName . equals ( type . getName ( ) ) ) return changeAnnotationValuesToMap ( a ) ; } return null ; }
Return all annotations for Class or Field