|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.aop.annotation.PortableAnnotationElement org.jboss.aop.annotation.AnnotationElement
Bridge/portability class for resolving annotations in JDK 1.4 and JDK1.5 Should be usable in JDK 1.4 and also should support finding invisible annotations. This would be needed for aspect bindings
Constructor Summary | |
AnnotationElement()
|
Method Summary | |
static Object |
getVisibleAnnotation(Class clazz,
Class annotation)
If class has a visible annotation, return it. |
static Object |
getVisibleAnnotation(Constructor con,
Class annotation)
If constructor has visible annotation return it. |
static Object |
getVisibleAnnotation(Field field,
Class annotation)
If field has a visible annotation return it. |
static Object |
getVisibleAnnotation(Method method,
Class annotation)
Get a visible annotation for a particle Method. |
static Object[] |
getVisibleAnnotations(Class clazz)
|
static Object[] |
getVisibleAnnotations(Constructor c)
|
static Object[] |
getVisibleAnnotations(Field f)
|
static Object[] |
getVisibleAnnotations(Method m)
|
static boolean |
isVisibleAnnotationPresent(Class clazz,
Class annotation)
|
static boolean |
isVisibleAnnotationPresent(Constructor con,
Class annotation)
|
static boolean |
isVisibleAnnotationPresent(Field field,
Class annotation)
|
static boolean |
isVisibleAnnotationPresent(Method method,
Class annotation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AnnotationElement()
Method Detail |
public static Object getVisibleAnnotation(Method method, Class annotation)
method
- annotation
-
public static Object getVisibleAnnotation(Constructor con, Class annotation)
con
- annotation
-
public static Object getVisibleAnnotation(Field field, Class annotation)
field
- annotation
-
public static Object getVisibleAnnotation(Class clazz, Class annotation)
clazz
- annotation
-
public static boolean isVisibleAnnotationPresent(Field field, Class annotation) throws Exception
Exception
public static boolean isVisibleAnnotationPresent(Class clazz, Class annotation) throws Exception
Exception
public static boolean isVisibleAnnotationPresent(Constructor con, Class annotation) throws Exception
Exception
public static boolean isVisibleAnnotationPresent(Method method, Class annotation) throws Exception
Exception
public static Object[] getVisibleAnnotations(Class clazz) throws Exception
Exception
public static Object[] getVisibleAnnotations(Method m) throws Exception
Exception
public static Object[] getVisibleAnnotations(Field f) throws Exception
Exception
public static Object[] getVisibleAnnotations(Constructor c) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |