|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aop.annotation.PortableAnnotationElement
org.jboss.aop.annotation.AnnotationElement
public class 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
|
getVisibleAnnotation(Class<?> clazz,
Class<T> annotation)
If class has a visible annotation, return it. |
|
static
|
getVisibleAnnotation(Constructor<?> con,
Class<T> annotation)
If constructor has visible annotation return it. |
|
static
|
getVisibleAnnotation(Field field,
Class<T> annotation)
If field has a visible annotation return it. |
|
static
|
getVisibleAnnotation(Method method,
Class<T> annotation)
Get a visible annotation for a particle Method. |
|
static Annotation[] |
getVisibleAnnotations(Class<?> clazz)
|
|
static Annotation[] |
getVisibleAnnotations(Constructor<?> c)
|
|
static Annotation[] |
getVisibleAnnotations(Field f)
|
|
static Annotation[] |
getVisibleAnnotations(Method m)
|
|
static boolean |
isVisibleAnnotationPresent(Class<?> clazz,
Class<? extends Annotation> annotation)
|
|
static boolean |
isVisibleAnnotationPresent(Class<?> clazz,
String annotation)
|
|
static boolean |
isVisibleAnnotationPresent(Constructor<?> con,
Class<? extends Annotation> annotation)
|
|
static boolean |
isVisibleAnnotationPresent(Constructor<?> con,
String annotation)
|
|
static boolean |
isVisibleAnnotationPresent(Field f,
Class<? extends Annotation> annotation)
|
|
static boolean |
isVisibleAnnotationPresent(Field f,
String annotation)
|
|
static boolean |
isVisibleAnnotationPresent(Method m,
Class<? extends Annotation> annotation)
|
|
static boolean |
isVisibleAnnotationPresent(Method m,
String 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 <T extends Annotation> T getVisibleAnnotation(Method method,
Class<T> annotation)
method - annotation -
public static <T extends Annotation> T getVisibleAnnotation(Constructor<?> con,
Class<T> annotation)
con - annotation -
public static <T extends Annotation> T getVisibleAnnotation(Field field,
Class<T> annotation)
field - annotation -
public static <T extends Annotation> T getVisibleAnnotation(Class<?> clazz,
Class<T> annotation)
clazz - annotation -
public static boolean isVisibleAnnotationPresent(Class<?> clazz,
Class<? extends Annotation> annotation)
public static boolean isVisibleAnnotationPresent(Method m,
Class<? extends Annotation> annotation)
public static boolean isVisibleAnnotationPresent(Field f,
Class<? extends Annotation> annotation)
public static boolean isVisibleAnnotationPresent(Constructor<?> con,
Class<? extends Annotation> annotation)
public static boolean isVisibleAnnotationPresent(Class<?> clazz,
String annotation)
public static boolean isVisibleAnnotationPresent(Method m,
String annotation)
public static boolean isVisibleAnnotationPresent(Field f,
String annotation)
public static boolean isVisibleAnnotationPresent(Constructor<?> con,
String annotation)
public static Annotation[] getVisibleAnnotations(Class<?> clazz)
throws Exception
Exception
public static Annotation[] getVisibleAnnotations(Method m)
throws Exception
Exception
public static Annotation[] getVisibleAnnotations(Field f)
throws Exception
Exception
public static Annotation[] getVisibleAnnotations(Constructor<?> c)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||