@HashCodeAndEqualsPlugin.Enhance public static class AnnotationAppender.Target.OnMethod 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.MethodVisitor |
methodVisitor
The method visitor to write the annotation to.
|
Constructor and Description |
---|
OnMethod(org.objectweb.asm.MethodVisitor methodVisitor)
Creates a new wrapper for a Java method or constructor.
|
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.MethodVisitor methodVisitor
public OnMethod(org.objectweb.asm.MethodVisitor methodVisitor)
methodVisitor
- The ASM method visitor to which the annotations are appended to.public org.objectweb.asm.AnnotationVisitor visit(java.lang.String annotationTypeDescriptor, boolean visible)
visit
in interface AnnotationAppender.Target
annotationTypeDescriptor
- 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.Target
annotationTypeDescriptor
- 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.