Class AnnotationAppender.Target.OnRecordComponent

java.lang.Object
net.bytebuddy.implementation.attribute.AnnotationAppender.Target.OnRecordComponent
All Implemented Interfaces:
AnnotationAppender.Target
Enclosing interface:
AnnotationAppender.Target

@Enhance public static class AnnotationAppender.Target.OnRecordComponent extends Object implements AnnotationAppender.Target
Target for an annotation that is written to a Java record component.
  • Field Details

    • recordComponentVisitor

      private final org.objectweb.asm.RecordComponentVisitor recordComponentVisitor
      The record component visitor to write the annotation to.
  • Constructor Details

    • OnRecordComponent

      public OnRecordComponent(org.objectweb.asm.RecordComponentVisitor recordComponentVisitor)
      Creates a new wrapper for a Java record component.
      Parameters:
      recordComponentVisitor - The record component visitor to write the annotation to.
  • Method Details

    • visit

      @MaybeNull public org.objectweb.asm.AnnotationVisitor visit(String annotationTypeDescriptor, boolean visible)
      Creates an annotation visitor for writing the specified annotation.
      Specified by:
      visit in interface AnnotationAppender.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

      @MaybeNull public org.objectweb.asm.AnnotationVisitor visit(String annotationTypeDescriptor, boolean visible, int typeReference, String typePath)
      Creates an annotation visitor for writing the specified type annotation.
      Specified by:
      visit in interface AnnotationAppender.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.