|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.lang.AnnotationHelper
public class AnnotationHelper
AnnotationHelper.
| Method Summary | |
|---|---|
static Annotation |
getAnnotation(AccessibleObject ao,
Class annotationClass)
Get an annotation |
static Annotation |
getAnnotation(Class clazz,
Class annotationClass)
Get an annotation |
static Annotation |
getAnnotation(Constructor constructor,
Class annotationClass)
Get an annotation |
static Annotation |
getAnnotation(Field field,
Class annotationClass)
Get an annotation |
static Annotation |
getAnnotation(Method method,
Class annotationClass)
Get an annotation |
static Annotation |
getAnnotation(Object object,
Class annotationClass)
Get an annotation |
static Annotation[] |
getAnnotations(AccessibleObject ao)
Get annotations |
static Annotation[] |
getAnnotations(Class clazz)
Get annotations |
static Annotation[] |
getAnnotations(Constructor constructor)
Get annotations |
static Annotation[] |
getAnnotations(Field field)
Get annotations |
static Annotation[] |
getAnnotations(Method method)
Get annotations |
static Annotation[] |
getAnnotations(Object object)
Get an array of the annotations attached to this element. |
static Object[] |
getAnnotationsInternal(Method method)
|
static Annotation[] |
getDeclaredAnnotations(AccessibleObject ao)
Get declared annotations |
static Annotation[] |
getDeclaredAnnotations(Class clazz)
Get declared annotations |
static Annotation[] |
getDeclaredAnnotations(Constructor constructor)
Get declared annotations |
static Annotation[] |
getDeclaredAnnotations(Field field)
Get declared annotations |
static Annotation[] |
getDeclaredAnnotations(Method method)
Get declared annotations |
static Annotation[] |
getDeclaredAnnotations(Object object)
Get an array of the annotations attached to this element. |
static Object[] |
getDeclaredAnnotationsInternal(Method method)
|
static Annotation[][] |
getParameterAnnotations(Constructor constructor)
Get the parameter annotations |
static Annotation[][] |
getParameterAnnotations(Method method)
Get the parameter annotations |
static boolean |
isAnnotationPresent(Class clazz,
Class annotationClass)
Whether an annotation is present |
static boolean |
isAnnotationPresent(Constructor constructor,
Class annotationClass)
Whether an annotation is present |
static boolean |
isAnnotationPresent(Field field,
Class annotationClass)
Whether an annotation is present |
static boolean |
isAnnotationPresent(Method method,
Class annotationClass)
Whether an annotation is present |
static boolean |
isAnnotationPresent(Object obj,
Class annotationClass)
Whether an annotation is present |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isAnnotationPresent(Class clazz,
Class annotationClass)
clazz - the classannotationClass - the annotation class
public static Annotation getAnnotation(Class clazz,
Class annotationClass)
clazz - the classannotationClass - the annotation class
public static Annotation[] getAnnotations(Class clazz)
clazz - the class
public static Annotation[] getDeclaredAnnotations(Class clazz)
clazz - the class
public static boolean isAnnotationPresent(Object obj,
Class annotationClass)
ao - the accessible objectannotationClass - the annotation class
public static Annotation getAnnotation(AccessibleObject ao,
Class annotationClass)
ao - the accessible objectannotationClass - the annotation class
public static Annotation[] getAnnotations(AccessibleObject ao)
ao - the accessible object
public static Annotation[] getDeclaredAnnotations(AccessibleObject ao)
ao - the accessible object
public static boolean isAnnotationPresent(Method method,
Class annotationClass)
method - the methodannotationClass - the annotation class
public static Annotation getAnnotation(Method method,
Class annotationClass)
method - the methodannotationClass - the annotation class
public static Annotation[] getAnnotations(Object object)
public static Annotation[] getDeclaredAnnotations(Object object)
public static Annotation getAnnotation(Object object,
Class annotationClass)
object - the the annotated elementannotationClass - the annotation class
public static Annotation[] getAnnotations(Method method)
method - the method
public static Object[] getAnnotationsInternal(Method method)
public static Annotation[] getDeclaredAnnotations(Method method)
method - the method
public static Object[] getDeclaredAnnotationsInternal(Method method)
public static Annotation[][] getParameterAnnotations(Method method)
method - the method
public static boolean isAnnotationPresent(Constructor constructor,
Class annotationClass)
constructor - the constructorannotationClass - the annotation class
public static Annotation getAnnotation(Constructor constructor,
Class annotationClass)
constructor - the constructorannotationClass - the annotation class
public static Annotation[] getAnnotations(Constructor constructor)
constructor - the constructor
public static Annotation[] getDeclaredAnnotations(Constructor constructor)
constructor - the constructor
public static Annotation[][] getParameterAnnotations(Constructor constructor)
constructor - the constructor
public static boolean isAnnotationPresent(Field field,
Class annotationClass)
field - the fieldannotationClass - the annotation class
public static Annotation getAnnotation(Field field,
Class annotationClass)
field - the fieldannotationClass - the annotation class
public static Annotation[] getAnnotations(Field field)
field - the field
public static Annotation[] getDeclaredAnnotations(Field field)
field - the field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||