public class AnnotationParser
extends java.lang.Object
| Constructor and Description |
|---|
AnnotationParser() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.lang.annotation.Annotation> |
parse(org.objectweb.asm.tree.AnnotationNode annotationNode)
Parse an annotation from an
AnnotationNode. |
static <T extends java.lang.annotation.Annotation> |
parse(java.lang.Class<T> type,
org.objectweb.asm.tree.AnnotationNode annotationNode)
Parse an annotation from an
AnnotationNode. |
static <T extends java.lang.annotation.Annotation> |
parse(java.lang.ClassLoader loader,
org.objectweb.asm.tree.AnnotationNode annotationNode)
Parse an annotation from an
AnnotationNode. |
static <T extends java.lang.annotation.Annotation> |
parse(java.lang.ClassLoader loader,
java.lang.Class<T> type,
org.objectweb.asm.tree.AnnotationNode annotationNode)
Parse an annotation from an
AnnotationNode. |
public static <T extends java.lang.annotation.Annotation> T parse(org.objectweb.asm.tree.AnnotationNode annotationNode)
throws java.lang.ClassNotFoundException
AnnotationNode.T - The type of the annotationannotationNode - The annotation nodejava.lang.ClassNotFoundException - If the annotation class could not be foundpublic static <T extends java.lang.annotation.Annotation> T parse(java.lang.ClassLoader loader,
org.objectweb.asm.tree.AnnotationNode annotationNode)
throws java.lang.ClassNotFoundException
AnnotationNode.T - The type of the annotationloader - The class loader to use for loading classesannotationNode - The annotation nodejava.lang.ClassNotFoundException - If the annotation class could not be foundpublic static <T extends java.lang.annotation.Annotation> T parse(java.lang.Class<T> type,
org.objectweb.asm.tree.AnnotationNode annotationNode)
AnnotationNode.T - The type of the annotationtype - The type of the annotationannotationNode - The annotation nodepublic static <T extends java.lang.annotation.Annotation> T parse(java.lang.ClassLoader loader,
java.lang.Class<T> type,
org.objectweb.asm.tree.AnnotationNode annotationNode)
AnnotationNode.T - The type of the annotationloader - The class loader to use for loading classestype - The type of the annotationannotationNode - The annotation node