com.almende.util
Class AnnotationUtil

java.lang.Object
  extended by com.almende.util.AnnotationUtil

public class AnnotationUtil
extends Object


Nested Class Summary
static class AnnotationUtil.AnnotatedClass
          AnnotatedClass describes a class, its annotations, and its methods.
static class AnnotationUtil.AnnotatedMethod
          AnnotatedMethod describes a method and its parameters.
static class AnnotationUtil.AnnotatedParam
          AnnotatedParam describes all annotations of a parameter.
 
Constructor Summary
AnnotationUtil()
           
 
Method Summary
static AnnotationUtil.AnnotatedClass get(Class<?> clazz)
          Get all annotations of a class, methods, and parameters.
static AnnotationUtil.AnnotatedClass get(Class<?> clazz, boolean includeObject)
          Get all annotations of a class, methods, and parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationUtil

public AnnotationUtil()
Method Detail

get

public static AnnotationUtil.AnnotatedClass get(Class<?> clazz)
Get all annotations of a class, methods, and parameters. Returned annotations include all annotations of the classes interfaces and super classes (excluding java.lang.Object).

Parameters:
clazz -
Returns:
annotatedClazz

get

public static AnnotationUtil.AnnotatedClass get(Class<?> clazz,
                                                boolean includeObject)
Get all annotations of a class, methods, and parameters. Returned annotations include all annotations of the classes interfaces and super classes.

Parameters:
clazz -
includeObject - If true, methods of java.lang.Object will be included in the superclasses too.
Returns:
annotatedClazz


Copyright © 2013 Almende BV. All Rights Reserved.