org.wamblee.reflection
Class AnnotationUtils

java.lang.Object
  extended by org.wamblee.reflection.AnnotationUtils

public class AnnotationUtils
extends Object

Utlities for working with annotations.

Author:
Erik Brakkee

Constructor Summary
AnnotationUtils()
           
 
Method Summary
static List<Accessor> analyse(Class aClass, Class<? extends Annotation> aAnnotation)
          Returns the accessor for a given annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationUtils

public AnnotationUtils()
Method Detail

analyse

public static List<Accessor> analyse(Class aClass,
                                     Class<? extends Annotation> aAnnotation)
Returns the accessor for a given annotation.

Parameters:
aClass - Class to analyse.
aAnnotation - Annotation that must be present.
Returns:
List of accessors. Empty list is returned if no match is found.


Copyright © 2011. All Rights Reserved.