Interface RecordComponentInfo

All Superinterfaces:
AttributedElement, ClassFileElement

public sealed interface RecordComponentInfo extends AttributedElement
Models a single record component in the RecordAttribute.
Since:
24
  • Method Details

    • name

      Utf8Entry name()
      Returns the name of this component.
      Returns:
      the name of this component
    • descriptor

      Utf8Entry descriptor()
      Returns the field descriptor of this component.
      Returns:
      the field descriptor of this component
    • descriptorSymbol

      default ClassDesc descriptorSymbol()
      Returns the field descriptor of this component, as a ClassDesc.
      Returns:
      the field descriptor of this component, as a ClassDesc
    • of

      static RecordComponentInfo of(Utf8Entry name, Utf8Entry descriptor, List<Attribute<?>> attributes)
      Returns a record component description.
      Parameters:
      name - the component name
      descriptor - the component field descriptor
      attributes - the component attributes
      Returns:
      a record component description
    • of

      static RecordComponentInfo of(Utf8Entry name, Utf8Entry descriptor, Attribute<?>... attributes)
      Returns a record component description.
      Parameters:
      name - the component name
      descriptor - the component field descriptor
      attributes - the component attributes
      Returns:
      a record component description
    • of

      static RecordComponentInfo of(String name, ClassDesc descriptor, List<Attribute<?>> attributes)
      Returns a record component description.
      Parameters:
      name - the component name
      descriptor - the component field descriptor
      attributes - the component attributes
      Returns:
      a record component description
    • of

      static RecordComponentInfo of(String name, ClassDesc descriptor, Attribute<?>... attributes)
      Returns a record component description.
      Parameters:
      name - the component name
      descriptor - the component field descriptor
      attributes - the component attributes
      Returns:
      a record component description