Class CheckRecordComponentAdapter

java.lang.Object
org.objectweb.asm.RecordComponentVisitor
org.objectweb.asm.util.CheckRecordComponentAdapter

public class CheckRecordComponentAdapter extends org.objectweb.asm.RecordComponentVisitor
A RecordComponentVisitor that checks that its methods are properly used.
  • Constructor Details

    • CheckRecordComponentAdapter

      public CheckRecordComponentAdapter(org.objectweb.asm.RecordComponentVisitor recordComponentVisitor)
      Constructs a new CheckRecordComponentAdapter. Subclasses must not use this constructor. Instead, they must use the CheckRecordComponentAdapter(int, RecordComponentVisitor) version.
      Parameters:
      recordComponentVisitor - the record component visitor to which this adapter must delegate calls.
      Throws:
      IllegalStateException - If a subclass calls this constructor.
    • CheckRecordComponentAdapter

      protected CheckRecordComponentAdapter(int api, org.objectweb.asm.RecordComponentVisitor recordComponentVisitor)
      Constructs a new CheckRecordComponentAdapter.
      Parameters:
      api - the ASM API version implemented by this visitor. Must be one of Opcodes.ASM8 or Opcodes.ASM9.
      recordComponentVisitor - the record component visitor to which this adapter must delegate calls.
  • Method Details

    • visitAnnotation

      public org.objectweb.asm.AnnotationVisitor visitAnnotation(String descriptor, boolean visible)
      Overrides:
      visitAnnotation in class org.objectweb.asm.RecordComponentVisitor
    • visitTypeAnnotation

      public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible)
      Overrides:
      visitTypeAnnotation in class org.objectweb.asm.RecordComponentVisitor
    • visitAttribute

      public void visitAttribute(org.objectweb.asm.Attribute attribute)
      Overrides:
      visitAttribute in class org.objectweb.asm.RecordComponentVisitor
    • visitEnd

      public void visitEnd()
      Overrides:
      visitEnd in class org.objectweb.asm.RecordComponentVisitor