Class RecordAttribute

java.lang.Object
javassist.bytecode.AttributeInfo
javassist.bytecode.RecordAttribute

public class RecordAttribute extends AttributeInfo
Represents the Record attribute in a class file, which stores information about the record components of a record class.
  • Field Details

  • Constructor Details

    • RecordAttribute

      public RecordAttribute(ConstPool cp, int nameIndex, DataInputStream in) throws IOException
      Constructs a RecordAttribute by reading from a DataInputStream.
      Parameters:
      cp - the constant pool
      nameIndex - the index into the constant pool of the attribute name
      in - the input stream to read from
      Throws:
      IOException - if an I/O error occurs
    • RecordAttribute

      public RecordAttribute(ConstPool cp, List<RecordAttribute.RecordComponentInfo> components)
      Constructs a RecordAttribute with specified components.
      Parameters:
      cp - the constant pool
      components - the list of record components
      attrName - the attribute name
  • Method Details