org.sonar.api.utils
Class AnnotationUtils

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

public final class AnnotationUtils
extends java.lang.Object

A utility class for annotations

Since:
1.11

Method Summary
static
<A> A
getClassAnnotation(java.lang.Object object, java.lang.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(java.lang.Object object,
                                       java.lang.Class<A> annotationClass)
Searches for a class annotation. All inheritance tree is analysed.



Copyright © 2009-2010 SonarSource. All Rights Reserved.