Method Summary |
|
public AnnotationVisitor | createAnnotationVisitor(AnnotationElement.Annotation annotation) Returns the annotation visitor to use. |
public Annotation | getAnnotation(String annotationName) Returns the class annotation with the name specified. |
public Annotation | getAnnotation(String annotationName, Constructor constructor) Returns the constructor annotation with the name specified for the constructor specified.
Parameters: annotationName - the annotation name Parameters: constructor - the java.lang.reflect.Constructor object to find the annotations on. |
public Annotation | getAnnotation(String annotationName, Method method) Returns the method annotation with the name specified for the method specified.
Parameters: annotationName - the annotation name Parameters: method - the java.lang.reflect.Method object to find the annotations on. |
public Annotation | getAnnotation(String annotationName, Field field) Returns the field annotation with the name specified for the field specified.
Parameters: annotationName - the annotation name Parameters: field - the java.lang.reflect.Field object to find the annotations on. |
public AnnotationElement.Annotation | getAnnotationElement(String annotationName) Returns the class annotation element with the name specified. |
public AnnotationElement.Annotation[] | getAnnotationElements() Returns all the class annotations. |
public Annotation[] | getAnnotations() Returns all the class annotations. |
public Annotation[] | getAnnotations(Constructor constructor) Returns all the constructor annotations.
Parameters: constructor - the java.lang.reflect.Constructor object to find the annotations on. |
public Annotation[] | getAnnotations(Method method) Returns all the method annotations.
Parameters: method - the java.lang.reflect.Method object to find the annotations on. |
public Annotation[] | getAnnotations(Field field) Returns all the field annotations.
Parameters: field - the java.lang.reflect.Field object to find the annotations on. |
public static byte[] | getBytecodeFor(String className, ClassLoader loader) Returns the bytecode for a class. |
public static BytecodeProvider | getBytecodeProviderFor(Class klass) Returns the bytecode provider. |
public static BytecodeProvider | getBytecodeProviderFor(String className, ClassLoader loader) Returns the bytecode provider. |
public Annotation | getConstructorAnnotation(String annotationName, String constructorDesc, ClassLoader loader) Returns the constructor annotation with the name specified for the constructor specified. |
public AnnotationElement.Annotation | getConstructorAnnotationElement(String annotationName, String desc) Returns the annotation with the name specified for the constructor specified. |
public AnnotationElement.Annotation[] | getConstructorAnnotationElements(String desc) Returns all the constructor annotation elements. |
public static BytecodeProvider | getDefaultBytecodeProvider() Returns the bytecode provider. |
public Annotation | getFieldAnnotation(String annotationName, String fieldName, String fieldDesc, ClassLoader loader) Returns the field annotation with the name specified for the field specified. |
public AnnotationElement.Annotation | getFieldAnnotationElement(String annotationName, String name, String desc) Returns the annotation with the name specified for the field specified. |
public AnnotationElement.Annotation[] | getFieldAnnotationElements(String name, String desc) Returns all the field annotation elements. |
public Annotation | getMethodAnnotation(String annotationName, String methodName, String methodDesc, ClassLoader loader) Returns the method annotation with the name specified for the method specified. |
public AnnotationElement.Annotation | getMethodAnnotationElement(String annotationName, String name, String desc) Returns the method annotation with the name specified for the method specified. |
public AnnotationElement.Annotation[] | getMethodAnnotationElements(String name, String desc) Returns all the method annotation elements. |
public static AnnotationReader | getReaderFor(Class klass) Returns the annotation reader for the class specified. |
public static AnnotationReader | getReaderFor(String className, ClassLoader loader) Returns the annotation reader for the class specified. |
public static AnnotationReader | getReaderFor(ClassKey classKey) Returns the annotation reader for the class specified. |
public boolean | isAnnotationPresent(String annotationName) Checks if an annotation is present at a specific class. |
public boolean | isAnnotationPresent(String annotationName, Constructor constructor) Checks if an annotation is present at a specific constructor.
Parameters: annotationName - the annotation name Parameters: constructor - the java.lang.reflect.Constructor object to find the annotations on. |
public boolean | isAnnotationPresent(String annotationName, Method method) Checks if an annotation is present at a specific method.
Parameters: annotationName - the annotation name Parameters: method - the java.lang.reflect.Method object to find the annotations on. |
public boolean | isAnnotationPresent(String annotationName, Field field) Checks if an annotation is present at a specific field.
Parameters: annotationName - the annotation name Parameters: field - the java.lang.reflect.Field object to find the annotations on. |
public boolean | isConstructorAnnotationPresent(String annotationName, String desc) Checks if an annotation is present at a specific constructor. |
public boolean | isFieldAnnotationPresent(String annotationName, String name, String desc) Checks if an annotation is present at a specific field. |
public boolean | isMethodAnnotationPresent(String annotationName, String name, String desc) Checks if an annotation is present at a specific method. |
public static void | refresh(Class klass) Resets the annotation reader for the class specified and triggers a new parsing of the newly read bytecode. |
public static void | refresh(String className, ClassLoader loader) Resets the annotation reader for the class specified and triggers a new parsing of the newly read bytecode. |
public static void | refreshAll() Resets *all* the annotation reader and triggers a new parsing of the newly read bytecode. |
public static void | setBytecodeProviderFor(Class klass, BytecodeProvider bytecodeProvider) Sets the bytecode provider. |
public static void | setBytecodeProviderFor(String className, ClassLoader loader, BytecodeProvider bytecodeProvider) Sets the bytecode provider. |
public static void | setDefaultBytecodeProvider(BytecodeProvider bytecodeProvider) Sets the bytecode provider. |
public static String | toJavaName(String desc) Converts the annotion class description to a Java class name. |