
public class HasAnnotation
extends org.objectweb.asm.ClassVisitor
| Constructor and Description |
|---|
HasAnnotation(org.objectweb.asm.ClassVisitor v,
Class<? extends Annotation> annotation) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasAnnotation(byte[] classBytes,
Class<? extends Annotation> annotation)
A utility method to determine if the class defined in
classBytes has a particular annotation. |
boolean |
isFound() |
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(String desc,
boolean visible) |
public HasAnnotation(org.objectweb.asm.ClassVisitor v,
Class<? extends Annotation> annotation)
public static boolean hasAnnotation(byte[] classBytes,
Class<? extends Annotation> annotation)
classBytes has a particular annotation.classBytes - the class's bytecodeannotation - the type of annotation to look fortrue if the class defined in classBytes
possesses the desired annotationpublic boolean isFound()
public org.objectweb.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible)
visitAnnotation in class org.objectweb.asm.ClassVisitorCopyright © 2018. All rights reserved.