com.mysema.util
Class Annotations

java.lang.Object
  extended by com.mysema.util.Annotations
All Implemented Interfaces:
AnnotatedElement

public class Annotations
extends Object
implements AnnotatedElement

Author:
tiwe

Constructor Summary
Annotations(AnnotatedElement... elements)
           
 
Method Summary
 void addAnnotation(Annotation annotation)
           
<T extends Annotation>
T
getAnnotation(Class<T> annotationClass)
           
 Annotation[] getAnnotations()
           
 Annotation[] getDeclaredAnnotations()
           
 boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Annotations

public Annotations(AnnotatedElement... elements)
Method Detail

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
Specified by:
getAnnotation in interface AnnotatedElement

getAnnotations

public Annotation[] getAnnotations()
Specified by:
getAnnotations in interface AnnotatedElement

getDeclaredAnnotations

public Annotation[] getDeclaredAnnotations()
Specified by:
getDeclaredAnnotations in interface AnnotatedElement

isAnnotationPresent

public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
Specified by:
isAnnotationPresent in interface AnnotatedElement

addAnnotation

public void addAnnotation(@Nullable
                          Annotation annotation)


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.