@HashCodeAndEqualsPlugin.Enhance public static class AnnotationAppender.Target.OnType extends java.lang.Object implements AnnotationAppender.Target
AnnotationAppender.Target.OnField, AnnotationAppender.Target.OnMethod, AnnotationAppender.Target.OnMethodParameter, AnnotationAppender.Target.OnType| Modifier and Type | Field and Description |
|---|---|
private org.objectweb.asm.ClassVisitor |
classVisitor
The class visitor to write the annotation to.
|
| Constructor and Description |
|---|
OnType(org.objectweb.asm.ClassVisitor classVisitor)
Creates a new wrapper for a Java type.
|
| Modifier and Type | Method and Description |
|---|---|
org.objectweb.asm.AnnotationVisitor |
visit(java.lang.String annotationTypeDescriptor,
boolean visible)
Creates an annotation visitor for writing the specified annotation.
|
org.objectweb.asm.AnnotationVisitor |
visit(java.lang.String annotationTypeDescriptor,
boolean visible,
int typeReference,
java.lang.String typePath)
Creates an annotation visitor for writing the specified type annotation.
|
private final org.objectweb.asm.ClassVisitor classVisitor
public OnType(org.objectweb.asm.ClassVisitor classVisitor)
classVisitor - The ASM class visitor to which the annotations are appended to.public org.objectweb.asm.AnnotationVisitor visit(java.lang.String annotationTypeDescriptor,
boolean visible)
visit in interface AnnotationAppender.TargetannotationTypeDescriptor - The type descriptor for the annotation to be written.visible - true if the annotation is to be visible at runtime.public org.objectweb.asm.AnnotationVisitor visit(java.lang.String annotationTypeDescriptor,
boolean visible,
int typeReference,
java.lang.String typePath)
visit in interface AnnotationAppender.TargetannotationTypeDescriptor - The type descriptor for the annotation to be written.visible - true if the annotation is to be visible at runtime.typeReference - The type annotation's type reference.typePath - The type annotation's type path.