public class CollectAnnotationData
extends org.objectweb.asm.AnnotationVisitor
Modifier and Type | Class and Description |
---|---|
static class |
CollectAnnotationData.AnnotationData
Holds annotation fields/values.
|
static class |
CollectAnnotationData.MyAnnotationArrayVisitor
Collects data inside an array-valued annotation parameter.
|
Constructor and Description |
---|
CollectAnnotationData(String desc,
boolean visible)
Construct the collector.
|
Modifier and Type | Method and Description |
---|---|
CollectAnnotationData.AnnotationData |
getAnnotation() |
void |
visit(String name,
Object value) |
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(String name,
String desc) |
org.objectweb.asm.AnnotationVisitor |
visitArray(String name) |
void |
visitEnd() |
void |
visitEnum(String name,
String desc,
String value) |
public CollectAnnotationData(String desc, boolean visible)
desc
- class descriptor of the annotation classvisible
- true if the annotation is visible at runtimepublic CollectAnnotationData.AnnotationData getAnnotation()
public void visit(String name, Object value)
visit
in class org.objectweb.asm.AnnotationVisitor
public org.objectweb.asm.AnnotationVisitor visitAnnotation(String name, String desc)
visitAnnotation
in class org.objectweb.asm.AnnotationVisitor
public org.objectweb.asm.AnnotationVisitor visitArray(String name)
visitArray
in class org.objectweb.asm.AnnotationVisitor
public void visitEnd()
visitEnd
in class org.objectweb.asm.AnnotationVisitor
Copyright © 2018. All rights reserved.