Interface AnnotationAppender.Target
-
- All Known Implementing Classes:
AnnotationAppender.Target.OnField
,AnnotationAppender.Target.OnMethod
,AnnotationAppender.Target.OnMethodParameter
,AnnotationAppender.Target.OnRecordComponent
,AnnotationAppender.Target.OnType
- Enclosing interface:
- AnnotationAppender
public static interface AnnotationAppender.Target
Represents a target for an annotation writing process.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AnnotationAppender.Target.OnField
Target for an annotation that is written to a Java field.static class
AnnotationAppender.Target.OnMethod
Target for an annotation that is written to a Java method or constructor.static class
AnnotationAppender.Target.OnMethodParameter
Target for an annotation that is written to a Java method or constructor parameter.static class
AnnotationAppender.Target.OnRecordComponent
Target for an annotation that is written to a Java record component.static class
AnnotationAppender.Target.OnType
Target for an annotation that is written to a Java type.
-
Method Summary
All Methods Instance Methods Abstract 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
org.objectweb.asm.AnnotationVisitor visit(java.lang.String annotationTypeDescriptor, boolean visible)
Creates an annotation visitor for writing the specified annotation.- 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
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.- 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.
-
-