org.mule.util.annotation
Class AnnotationUtils
java.lang.Object
org.mule.util.annotation.AnnotationUtils
public class AnnotationUtils
- extends Object
A helper class for reading annotations.
Method Summary |
static List<AnnotationMetaData> |
getAllFieldAnnotations(Class<?> c)
|
static List<AnnotationMetaData> |
getAllMethodAnnotations(Class<?> c)
|
static List<AnnotationMetaData> |
getClassAndMethodAnnotations(Class<?> c)
|
protected static void |
getClassAnnotationForInterfaces(Class<?> bottom,
List<AnnotationMetaData> annos)
|
protected static void |
getClassAnnotationForSuperClasses(Class<?> bottom,
List<AnnotationMetaData> annos)
|
protected static AnnotationMetaData |
getClassAnnotationForSuperClasses(Class<? extends Annotation> annotation,
Class<?> bottom)
|
static List<AnnotationMetaData> |
getClassAnnotationInHeirarchy(Class<?> bottom)
Deprecated. use getClassAnnotationInHierarchy(Class) |
static AnnotationMetaData |
getClassAnnotationInHeirarchy(Class<? extends Annotation> annotation,
Class<?> bottom)
Deprecated. use getClassAnnotationInHierarchy(Class, Class) |
static List<AnnotationMetaData> |
getClassAnnotationInHierarchy(Class<?> bottom)
|
static AnnotationMetaData |
getClassAnnotationInHierarchy(Class<? extends Annotation> annotation,
Class<?> bottom)
|
static List<AnnotationMetaData> |
getFieldAnnotations(Class<?> c,
Class<? extends Annotation> annotation)
|
static Set<AnnotationMetaData> |
getFieldAnnotationsForHeirarchy(Class<?> bottom)
Deprecated. use getFieldAnnotationsForHierarchy(Class) |
static Set<AnnotationMetaData> |
getFieldAnnotationsForHeirarchy(Class<?> bottom,
Class<? extends Annotation> annotation)
Deprecated. use getFieldAnnotationsForHierarchy(Class, Class) |
static Set<AnnotationMetaData> |
getFieldAnnotationsForHierarchy(Class<?> bottom)
|
static Set<AnnotationMetaData> |
getFieldAnnotationsForHierarchy(Class<?> bottom,
Class<? extends Annotation> annotation)
|
static void |
getFieldAnnotationsForInterfaces(Class<?> clazz,
Set<AnnotationMetaData> annos)
|
static void |
getFieldAnnotationsForInterfaces(Class<?> clazz,
Set<AnnotationMetaData> annos,
Class<? extends Annotation> annotation)
|
protected static void |
getFieldAnnotationsForSuperClasses(Class<?> bottom,
Set<AnnotationMetaData> annos)
|
protected static void |
getFieldAnnotationsForSuperClasses(Class<?> bottom,
Set<AnnotationMetaData> annos,
Class<? extends Annotation> annotation)
|
static List<AnnotationMetaData> |
getMethodAnnotations(Class<?> c,
Class<? extends Annotation> ann)
|
static List<AnnotationMetaData> |
getMethodMetaAnnotations(Class<?> c,
Class<? extends Annotation> metaAnn)
|
static List<AnnotationMetaData> |
getParamAnnotations(Method method)
|
static List<AnnotationMetaData> |
getParamAnnotationsWithMeta(Method method,
Class<? extends Annotation> metaAnnotation)
|
static boolean |
hasAnnotation(Class<? super Annotation> annotation,
Class<?> clazz)
|
static boolean |
hasAnnotationWithPackage(String packageName,
Class<?> clazz)
|
static boolean |
methodHasParamAnnotations(Method method)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationUtils
public AnnotationUtils()
methodHasParamAnnotations
public static boolean methodHasParamAnnotations(Method method)
getParamAnnotations
public static List<AnnotationMetaData> getParamAnnotations(Method method)
getParamAnnotationsWithMeta
public static List<AnnotationMetaData> getParamAnnotationsWithMeta(Method method,
Class<? extends Annotation> metaAnnotation)
getClassAndMethodAnnotations
public static List<AnnotationMetaData> getClassAndMethodAnnotations(Class<?> c)
getAllMethodAnnotations
public static List<AnnotationMetaData> getAllMethodAnnotations(Class<?> c)
getMethodAnnotations
public static List<AnnotationMetaData> getMethodAnnotations(Class<?> c,
Class<? extends Annotation> ann)
getMethodMetaAnnotations
public static List<AnnotationMetaData> getMethodMetaAnnotations(Class<?> c,
Class<? extends Annotation> metaAnn)
getAllFieldAnnotations
public static List<AnnotationMetaData> getAllFieldAnnotations(Class<?> c)
getFieldAnnotations
public static List<AnnotationMetaData> getFieldAnnotations(Class<?> c,
Class<? extends Annotation> annotation)
getClassAnnotationInHeirarchy
@Deprecated
public static AnnotationMetaData getClassAnnotationInHeirarchy(Class<? extends Annotation> annotation,
Class<?> bottom)
- Deprecated. use getClassAnnotationInHierarchy(Class, Class)
getClassAnnotationInHierarchy
public static AnnotationMetaData getClassAnnotationInHierarchy(Class<? extends Annotation> annotation,
Class<?> bottom)
getClassAnnotationInHeirarchy
@Deprecated
public static List<AnnotationMetaData> getClassAnnotationInHeirarchy(Class<?> bottom)
- Deprecated. use getClassAnnotationInHierarchy(Class)
getClassAnnotationInHierarchy
public static List<AnnotationMetaData> getClassAnnotationInHierarchy(Class<?> bottom)
getClassAnnotationForSuperClasses
protected static AnnotationMetaData getClassAnnotationForSuperClasses(Class<? extends Annotation> annotation,
Class<?> bottom)
getClassAnnotationForSuperClasses
protected static void getClassAnnotationForSuperClasses(Class<?> bottom,
List<AnnotationMetaData> annos)
getClassAnnotationForInterfaces
protected static void getClassAnnotationForInterfaces(Class<?> bottom,
List<AnnotationMetaData> annos)
getFieldAnnotationsForHeirarchy
@Deprecated
public static Set<AnnotationMetaData> getFieldAnnotationsForHeirarchy(Class<?> bottom)
- Deprecated. use getFieldAnnotationsForHierarchy(Class)
getFieldAnnotationsForHierarchy
public static Set<AnnotationMetaData> getFieldAnnotationsForHierarchy(Class<?> bottom)
getFieldAnnotationsForInterfaces
public static void getFieldAnnotationsForInterfaces(Class<?> clazz,
Set<AnnotationMetaData> annos)
getFieldAnnotationsForSuperClasses
protected static void getFieldAnnotationsForSuperClasses(Class<?> bottom,
Set<AnnotationMetaData> annos)
getFieldAnnotationsForHeirarchy
@Deprecated
public static Set<AnnotationMetaData> getFieldAnnotationsForHeirarchy(Class<?> bottom,
Class<? extends Annotation> annotation)
- Deprecated. use getFieldAnnotationsForHierarchy(Class, Class)
getFieldAnnotationsForHierarchy
public static Set<AnnotationMetaData> getFieldAnnotationsForHierarchy(Class<?> bottom,
Class<? extends Annotation> annotation)
getFieldAnnotationsForInterfaces
public static void getFieldAnnotationsForInterfaces(Class<?> clazz,
Set<AnnotationMetaData> annos,
Class<? extends Annotation> annotation)
getFieldAnnotationsForSuperClasses
protected static void getFieldAnnotationsForSuperClasses(Class<?> bottom,
Set<AnnotationMetaData> annos,
Class<? extends Annotation> annotation)
hasAnnotation
public static boolean hasAnnotation(Class<? super Annotation> annotation,
Class<?> clazz)
throws IOException
- Throws:
IOException
hasAnnotationWithPackage
public static boolean hasAnnotationWithPackage(String packageName,
Class<?> clazz)
throws IOException
- Throws:
IOException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.