public static interface AnnotationAppender.Target
Modifier and Type | Interface and 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.
|
Modifier and Type | Method and Description |
---|---|
AnnotationVisitor |
visit(String annotationTypeDescriptor,
boolean visible)
Creates an annotation visitor for writing the specified annotation.
|
AnnotationVisitor |
visit(String annotationTypeDescriptor,
boolean visible,
int typeReference,
String typePath)
Creates an annotation visitor for writing the specified type annotation.
|
@MaybeNull AnnotationVisitor visit(String annotationTypeDescriptor, boolean visible)
annotationTypeDescriptor
- The type descriptor for the annotation to be written.visible
- true
if the annotation is to be visible at runtime.@MaybeNull AnnotationVisitor visit(String annotationTypeDescriptor, boolean visible, int typeReference, String typePath)
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.Copyright © 2014–2023. All rights reserved.