com.mysema.util
Class Annotations
java.lang.Object
com.mysema.util.Annotations
- All Implemented Interfaces:
- AnnotatedElement
public class Annotations
- extends Object
- implements AnnotatedElement
Annotations is a merging apapter for the AnnotatedElement
interface
- Author:
- tiwe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Annotations
public Annotations(AnnotatedElement... elements)
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.