public class PortableAnnotationElement extends Object
Constructor and Description |
---|
PortableAnnotationElement() |
Modifier and Type | Method and Description |
---|---|
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) |
public static void setClosingDownManager(boolean closing)
public static boolean isInvisibleAnnotationPresent(Field field, String annotation) throws Exception
Exception
public static boolean isInvisibleAnnotationPresent(javassist.CtField field, String annotation)
public static boolean isVisibleAnnotationPresent(javassist.CtField field, String annotation)
public static boolean isAnyAnnotationPresent(javassist.CtField ctField, String annotation)
public static boolean isInvisibleAnnotationPresent(Method method, String annotation) throws Exception
Exception
public static boolean isAnyAnnotationPresent(Field field, String annotation) throws Exception
Exception
public static boolean isAnyAnnotationPresent(Method method, String annotation) throws Exception
Exception
public static boolean isAnyAnnotationPresent(javassist.CtMethod ctMethod, String annotation)
public static boolean isInvisibleAnnotationPresent(Constructor<?> con, String annotation) throws Exception
Exception
public static boolean isInvisibleAnnotationPresent(javassist.CtConstructor ctMethod, String annotation)
public static boolean isVisibleAnnotationPresent(javassist.CtConstructor ctMethod, String annotation)
public static boolean isAnyAnnotationPresent(Constructor<?> con, String annotation) throws Exception
Exception
public static boolean isAnyAnnotationPresent(javassist.CtConstructor ctMethod, String annotation)
public static boolean isInvisibleAnnotationPresent(Class<?> clazz, String annotation) throws Exception
Exception
public static boolean isAnyAnnotationPresent(javassist.CtClass clazz, String annotation) throws Exception
Exception
public static boolean isAnyAnnotationPresent(Class<?> clazz, String annotation) throws Exception
Exception
protected static javassist.bytecode.ClassFile getClassFile(Class<?> clazz) throws javassist.NotFoundException
javassist.NotFoundException
protected static Object create(javassist.bytecode.AnnotationsAttribute group, Class<? extends Annotation> annotation) throws Exception
Exception
public static Object getInvisibleAnnotation(Method method, Class<? extends Annotation> annotation)
public static Object getInvisibleAnnotation(Constructor<?> con, Class<? extends Annotation> annotation)
public static Object getInvisibleAnnotation(Field field, Class<? extends Annotation> annotation)
public static Object getInvisibleAnnotation(Class<?> clazz, Class<? extends Annotation> annotation)
public static Object getAnyAnnotation(Method method, Class<? extends Annotation> annotation)
method
- annotation
- public static Object getAnyAnnotation(Constructor<?> con, Class<? extends Annotation> annotation)
con
- annotation
- public static Object getAnyAnnotation(Field field, Class<? extends Annotation> annotation)
public static Object getAnyAnnotation(Class<?> clazz, Class<? extends Annotation> annotation)
public static boolean isAnyAnnotationPresent(Field field, Class<? extends Annotation> annotation) throws Exception
Exception
public static boolean isAnyAnnotationPresent(Class<?> clazz, Class<? extends Annotation> annotation) throws Exception
Exception
public static boolean isAnyAnnotationPresent(Constructor<?> con, Class<? extends Annotation> annotation) throws Exception
Exception
public static boolean isAnyAnnotationPresent(Method method, Class<? extends Annotation> annotation) throws Exception
Exception
protected static boolean includeInvisibleAnnotation(Class<? extends Annotation> annotation)
protected static boolean includeInvisibleAnnotation(String annotation)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.