Class AnnotationAppender.Target.OnMethod
- java.lang.Object
-
- net.bytebuddy.implementation.attribute.AnnotationAppender.Target.OnMethod
-
- All Implemented Interfaces:
AnnotationAppender.Target
- Enclosing interface:
- AnnotationAppender.Target
@Enhance public static class AnnotationAppender.Target.OnMethod extends java.lang.Object implements AnnotationAppender.Target
Target for an annotation that is written to a Java method or constructor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.attribute.AnnotationAppender.Target
AnnotationAppender.Target.OnField, AnnotationAppender.Target.OnMethod, AnnotationAppender.Target.OnMethodParameter, AnnotationAppender.Target.OnRecordComponent, AnnotationAppender.Target.OnType
-
-
Field Summary
Fields Modifier and Type Field Description private org.objectweb.asm.MethodVisitor
methodVisitor
The method visitor to write the annotation to.
-
Constructor Summary
Constructors Constructor Description OnMethod(org.objectweb.asm.MethodVisitor methodVisitor)
Creates a new wrapper for a Java method or constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
visit
public org.objectweb.asm.AnnotationVisitor visit(java.lang.String annotationTypeDescriptor, boolean visible)
Creates an annotation visitor for writing the specified annotation.- Specified by:
visit
in interfaceAnnotationAppender.Target
- Parameters:
annotationTypeDescriptor
- The type descriptor for the annotation to be written.visible
-true
if the annotation is to be visible at runtime.- Returns:
- An annotation visitor for consuming the specified annotation.
-
visit
public 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.- Specified by:
visit
in interfaceAnnotationAppender.Target
- Parameters:
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.- Returns:
- An annotation visitor for consuming the specified annotation.
-
-