|
|||||||||
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 java.lang.Object |
getAnnotation(java.lang.Class clazz,
java.lang.Class annotationClass)
Get an annotation |
static java.lang.Object |
getAnnotation(java.lang.reflect.Constructor constructor,
java.lang.Class annotationClass)
Get an annotation |
static java.lang.Object |
getAnnotation(java.lang.reflect.Field field,
java.lang.Class annotationClass)
Get an annotation |
static java.lang.Object |
getAnnotation(java.lang.reflect.Method method,
java.lang.Class annotationClass)
Get an annotation |
static java.lang.Object[] |
getAnnotations(java.lang.Class clazz)
Get annotations |
static java.lang.Object[] |
getAnnotations(java.lang.reflect.Constructor constructor)
Get annotations |
static java.lang.Object[] |
getAnnotations(java.lang.reflect.Field field)
Get annotations |
static java.lang.Object[] |
getAnnotations(java.lang.reflect.Method method)
Get annotations |
static java.lang.Object[][] |
getParameterAnnotations(java.lang.reflect.Constructor constructor)
Get the parameter annotations |
static java.lang.Object[][] |
getParameterAnnotations(java.lang.reflect.Method method)
Get the parameter annotations |
static boolean |
isAnnotationPresent(java.lang.Class clazz,
java.lang.Class annotationClass)
Whether an annotation is present |
static boolean |
isAnnotationPresent(java.lang.reflect.Constructor constructor,
java.lang.Class annotationClass)
Whether an annotation is present |
static boolean |
isAnnotationPresent(java.lang.reflect.Field field,
java.lang.Class annotationClass)
Whether an annotation is present |
static boolean |
isAnnotationPresent(java.lang.reflect.Method method,
java.lang.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(java.lang.Class clazz, java.lang.Class annotationClass)
clazz
- the classannotationClass
- the annotation class
public static java.lang.Object getAnnotation(java.lang.Class clazz, java.lang.Class annotationClass)
clazz
- the classannotationClass
- the annotation class
public static java.lang.Object[] getAnnotations(java.lang.Class clazz)
clazz
- the class
public static boolean isAnnotationPresent(java.lang.reflect.Method method, java.lang.Class annotationClass)
method
- the methodannotationClass
- the annotation class
public static java.lang.Object getAnnotation(java.lang.reflect.Method method, java.lang.Class annotationClass)
method
- the methodannotationClass
- the annotation class
public static java.lang.Object[] getAnnotations(java.lang.reflect.Method method)
method
- the method
public static java.lang.Object[][] getParameterAnnotations(java.lang.reflect.Method method)
method
- the method
public static boolean isAnnotationPresent(java.lang.reflect.Constructor constructor, java.lang.Class annotationClass)
constructor
- the constructorannotationClass
- the annotation class
public static java.lang.Object getAnnotation(java.lang.reflect.Constructor constructor, java.lang.Class annotationClass)
constructor
- the constructorannotationClass
- the annotation class
public static java.lang.Object[] getAnnotations(java.lang.reflect.Constructor constructor)
constructor
- the constructor
public static java.lang.Object[][] getParameterAnnotations(java.lang.reflect.Constructor constructor)
constructor
- the constructor
public static boolean isAnnotationPresent(java.lang.reflect.Field field, java.lang.Class annotationClass)
field
- the fieldannotationClass
- the annotation class
public static java.lang.Object getAnnotation(java.lang.reflect.Field field, java.lang.Class annotationClass)
field
- the fieldannotationClass
- the annotation class
public static java.lang.Object[] getAnnotations(java.lang.reflect.Field field)
field
- the field
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |