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.TargetRepresents a target for an annotation writing process.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAnnotationAppender.Target.OnFieldTarget for an annotation that is written to a Java field.static classAnnotationAppender.Target.OnMethodTarget for an annotation that is written to a Java method or constructor.static classAnnotationAppender.Target.OnMethodParameterTarget for an annotation that is written to a Java method or constructor parameter.static classAnnotationAppender.Target.OnRecordComponentTarget for an annotation that is written to a Java record component.static classAnnotationAppender.Target.OnTypeTarget 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.AnnotationVisitorvisit(java.lang.String annotationTypeDescriptor, boolean visible)Creates an annotation visitor for writing the specified annotation.org.objectweb.asm.AnnotationVisitorvisit(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
@MaybeNull 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-trueif the annotation is to be visible at runtime.- Returns:
- An annotation visitor for consuming the specified annotation.
-
visit
@MaybeNull 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-trueif 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.
-
-