org.jboss.aop.annotation
Class PortableAnnotationElement
java.lang.Object
org.jboss.aop.annotation.PortableAnnotationElement
- Direct Known Subclasses:
- AnnotationElement
public class PortableAnnotationElement
- extends Object
This base class is portable between JDK 1.4 and JDK 1.5
AnnotationElement will be different for JDK 1.4 and JDK 1.5
- Version:
- $Revision: 81450 $
- Author:
- Bill Burke
Method Summary |
protected static Object |
create(javassist.bytecode.AnnotationsAttribute group,
Class<? extends Annotation> annotation)
|
static Object |
getAnyAnnotation(Class<?> clazz,
Class<? extends Annotation> annotation)
|
static Object |
getAnyAnnotation(Constructor<?> con,
Class<? extends Annotation> annotation)
If con has a invisible or visible annotation return it |
static Object |
getAnyAnnotation(Field field,
Class<? extends Annotation> annotation)
|
static Object |
getAnyAnnotation(Method method,
Class<? extends Annotation> annotation)
If invisble or visible annotation is present for method, then return it |
protected static javassist.bytecode.ClassFile |
getClassFile(Class<?> clazz)
|
static Object |
getInvisibleAnnotation(Class<?> clazz,
Class<? extends Annotation> annotation)
|
static Object |
getInvisibleAnnotation(Constructor<?> con,
Class<? extends Annotation> annotation)
|
static Object |
getInvisibleAnnotation(Field field,
Class<? extends Annotation> annotation)
|
static Object |
getInvisibleAnnotation(Method method,
Class<? extends Annotation> annotation)
|
protected static boolean |
includeInvisibleAnnotation(Class<? extends Annotation> annotation)
|
protected static boolean |
includeInvisibleAnnotation(String annotation)
|
static boolean |
isAnyAnnotationPresent(Class<?> clazz,
Class<? extends Annotation> annotation)
|
static boolean |
isAnyAnnotationPresent(Class<?> clazz,
String annotation)
|
static boolean |
isAnyAnnotationPresent(Constructor<?> con,
Class<? extends Annotation> annotation)
|
static boolean |
isAnyAnnotationPresent(Constructor<?> con,
String annotation)
|
static boolean |
isAnyAnnotationPresent(javassist.CtClass clazz,
String annotation)
|
static boolean |
isAnyAnnotationPresent(javassist.CtConstructor ctMethod,
String annotation)
|
static boolean |
isAnyAnnotationPresent(javassist.CtField ctField,
String annotation)
|
static boolean |
isAnyAnnotationPresent(javassist.CtMethod ctMethod,
String annotation)
|
static boolean |
isAnyAnnotationPresent(Field field,
Class<? extends Annotation> annotation)
|
static boolean |
isAnyAnnotationPresent(Field field,
String annotation)
|
static boolean |
isAnyAnnotationPresent(Method method,
Class<? extends Annotation> annotation)
|
static boolean |
isAnyAnnotationPresent(Method method,
String annotation)
|
static boolean |
isInvisibleAnnotationPresent(Class<?> clazz,
String annotation)
|
static boolean |
isInvisibleAnnotationPresent(Constructor<?> con,
String annotation)
|
static boolean |
isInvisibleAnnotationPresent(javassist.CtConstructor ctMethod,
String annotation)
|
static boolean |
isInvisibleAnnotationPresent(javassist.CtField field,
String annotation)
|
static boolean |
isInvisibleAnnotationPresent(Field field,
String annotation)
|
static boolean |
isInvisibleAnnotationPresent(Method method,
String annotation)
|
static boolean |
isVisibleAnnotationPresent(javassist.CtConstructor ctMethod,
String annotation)
|
static boolean |
isVisibleAnnotationPresent(javassist.CtField field,
String annotation)
|
static void |
setClosingDownManager(boolean closing)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortableAnnotationElement
public PortableAnnotationElement()
setClosingDownManager
public static void setClosingDownManager(boolean closing)
isInvisibleAnnotationPresent
public static boolean isInvisibleAnnotationPresent(Field field,
String annotation)
throws Exception
- Throws:
Exception
isInvisibleAnnotationPresent
public static boolean isInvisibleAnnotationPresent(javassist.CtField field,
String annotation)
isVisibleAnnotationPresent
public static boolean isVisibleAnnotationPresent(javassist.CtField field,
String annotation)
isAnyAnnotationPresent
public static boolean isAnyAnnotationPresent(javassist.CtField ctField,
String annotation)
isInvisibleAnnotationPresent
public static boolean isInvisibleAnnotationPresent(Method method,
String annotation)
throws Exception
- Throws:
Exception
isAnyAnnotationPresent
public static boolean isAnyAnnotationPresent(Field field,
String annotation)
throws Exception
- Throws:
Exception
isAnyAnnotationPresent
public static boolean isAnyAnnotationPresent(Method method,
String annotation)
throws Exception
- Throws:
Exception
isAnyAnnotationPresent
public static boolean isAnyAnnotationPresent(javassist.CtMethod ctMethod,
String annotation)
isInvisibleAnnotationPresent
public static boolean isInvisibleAnnotationPresent(Constructor<?> con,
String annotation)
throws Exception
- Throws:
Exception
isInvisibleAnnotationPresent
public static boolean isInvisibleAnnotationPresent(javassist.CtConstructor ctMethod,
String annotation)
isVisibleAnnotationPresent
public static boolean isVisibleAnnotationPresent(javassist.CtConstructor ctMethod,
String annotation)
isAnyAnnotationPresent
public static boolean isAnyAnnotationPresent(Constructor<?> con,
String annotation)
throws Exception
- Throws:
Exception
isAnyAnnotationPresent
public static boolean isAnyAnnotationPresent(javassist.CtConstructor ctMethod,
String annotation)
isInvisibleAnnotationPresent
public static boolean isInvisibleAnnotationPresent(Class<?> clazz,
String annotation)
throws Exception
- Throws:
Exception
isAnyAnnotationPresent
public static boolean isAnyAnnotationPresent(javassist.CtClass clazz,
String annotation)
throws Exception
- Throws:
Exception
isAnyAnnotationPresent
public static boolean isAnyAnnotationPresent(Class<?> clazz,
String annotation)
throws Exception
- Throws:
Exception
getClassFile
protected static javassist.bytecode.ClassFile getClassFile(Class<?> clazz)
throws javassist.NotFoundException
- Throws:
javassist.NotFoundException
create
protected static Object create(javassist.bytecode.AnnotationsAttribute group,
Class<? extends Annotation> annotation)
throws Exception
- Throws:
Exception
getInvisibleAnnotation
public static Object getInvisibleAnnotation(Method method,
Class<? extends Annotation> annotation)
getInvisibleAnnotation
public static Object getInvisibleAnnotation(Constructor<?> con,
Class<? extends Annotation> annotation)
getInvisibleAnnotation
public static Object getInvisibleAnnotation(Field field,
Class<? extends Annotation> annotation)
getInvisibleAnnotation
public static Object getInvisibleAnnotation(Class<?> clazz,
Class<? extends Annotation> annotation)
getAnyAnnotation
public static Object getAnyAnnotation(Method method,
Class<? extends Annotation> annotation)
- If invisble or visible annotation is present for method, then return it
- Parameters:
method
- annotation
-
- Returns:
getAnyAnnotation
public static Object getAnyAnnotation(Constructor<?> con,
Class<? extends Annotation> annotation)
- If con has a invisible or visible annotation return it
- Parameters:
con
- annotation
-
- Returns:
getAnyAnnotation
public static Object getAnyAnnotation(Field field,
Class<? extends Annotation> annotation)
getAnyAnnotation
public static Object getAnyAnnotation(Class<?> clazz,
Class<? extends Annotation> annotation)
isAnyAnnotationPresent
public static boolean isAnyAnnotationPresent(Field field,
Class<? extends Annotation> annotation)
throws Exception
- Throws:
Exception
isAnyAnnotationPresent
public static boolean isAnyAnnotationPresent(Class<?> clazz,
Class<? extends Annotation> annotation)
throws Exception
- Throws:
Exception
isAnyAnnotationPresent
public static boolean isAnyAnnotationPresent(Constructor<?> con,
Class<? extends Annotation> annotation)
throws Exception
- Throws:
Exception
isAnyAnnotationPresent
public static boolean isAnyAnnotationPresent(Method method,
Class<? extends Annotation> annotation)
throws Exception
- Throws:
Exception
includeInvisibleAnnotation
protected static boolean includeInvisibleAnnotation(Class<? extends Annotation> annotation)
includeInvisibleAnnotation
protected static boolean includeInvisibleAnnotation(String annotation)
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.