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 
    Target for an annotation that is written to a Java field.
    static class 
    Target for an annotation that is written to a Java method or constructor.
    static class 
    Target for an annotation that is written to a Java method or constructor parameter.
    static class 
    Target for an annotation that is written to a Java record component.
    static class 
    Target for an annotation that is written to a Java type.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.objectweb.asm.AnnotationVisitor
    visit(String annotationTypeDescriptor, boolean visible)
    Creates an annotation visitor for writing the specified annotation.
    org.objectweb.asm.AnnotationVisitor
    visit(String annotationTypeDescriptor, boolean visible, int typeReference, String typePath)
    Creates an annotation visitor for writing the specified type annotation.
  • Method Details

    • visit

      @MaybeNull org.objectweb.asm.AnnotationVisitor visit(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

      @MaybeNull org.objectweb.asm.AnnotationVisitor visit(String annotationTypeDescriptor, boolean visible, int typeReference, 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.