org.sonar.api.utils
Class AnnotationUtils

java.lang.Object
  extended by org.sonar.api.utils.AnnotationUtils

public final class AnnotationUtils
extends Object

A utility class for annotations

Since:
1.11

Method Summary
static
<A> A
getClassAnnotation(Object object, Class<A> annotationClass)
          Searches for a class annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getClassAnnotation

public static <A> A getClassAnnotation(Object object,
                                       Class<A> annotationClass)
Searches for a class annotation. All inheritance tree is analysed.



Copyright © 2009-2012 SonarSource. All Rights Reserved.