Module java.base
Package java.lang.classfile.attribute

# Interface LoadableDescriptorsAttribute

+Only in: valhalla-csr-open; not in: jdk-master.
public abstract sealed interface LoadableDescriptorsAttribute
extends java.lang.classfile.Attribute<java.lang.classfile.attribute.LoadableDescriptorsAttribute>, java.lang.classfile.ClassElement
permits jdk.internal.classfile.impl.BoundAttribute.BoundLoadableDescriptorsAttribute, jdk.internal.classfile.impl.UnboundAttribute.UnboundLoadableDescriptorsAttribute
Not in jdk-master; only in valhalla-csr-open

All Superinterfaces:
  `AttributePREVIEW<LoadableDescriptorsAttributePREVIEW>, ClassElementPREVIEW, ClassFileElement`

public sealed interface LoadableDescriptorsAttribute extends AttributePREVIEW<LoadableDescriptorsAttributePREVIEW>, ClassElementPREVIEW
`LoadableDescriptorsAttribute` is a reflective preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models the `LoadableDescriptors`PREVIEW attribute (JVMS §4.7.32PREVIEW), which suggests the JVM may load mentioned types before the `class` file carrying this attribute is loaded.

This attribute only appears on classes, and does not permit multiple instances in a class. It has a data dependency on the constant pool.

The attribute was introduced in the Java SE Platform version XX, major version 69. (FIXME)

See Java Virtual Machine Specification:
  4.7.32 The `LoadableDescriptors` AttributePREVIEW
Since:
  Valhalla
See Also:
  - `Attributes.loadableDescriptors()`PREVIEW

## Methods

- +
  public default java.util.List<java.lang.constant.ClassDesc> loadableDescriptorSymbols()
  Not in jdk-master; only in valhalla-csr-open

  ### loadableDescriptorSymbols

  default List<ClassDesc> loadableDescriptorSymbols()
  Returns the list of loadable descriptors, as nominal descriptors.
  Returns:
    the list of loadable descriptors, as nominal descriptors
- +
  public abstract java.util.List<java.lang.classfile.constantpool.Utf8Entry> loadableDescriptors()
  Not in jdk-master; only in valhalla-csr-open

  ### loadableDescriptors

  List<Utf8Entry> loadableDescriptors()
  Returns the list of loadable descriptors.
  Returns:
    the list of loadable descriptors
- +
  public static java.lang.classfile.attribute.LoadableDescriptorsAttribute of(java.lang.classfile.constantpool.Utf8Entry[] arg0)
  Not in jdk-master; only in valhalla-csr-open

  ### of

  static LoadableDescriptorsAttributePREVIEW of(Utf8Entry... loadableDescriptors)
  Returns a `LoadableDescriptors` attribute.
  Parameters:
    `loadableDescriptors` - the loadable descriptors
  Returns:
    a `LoadableDescriptors` attribute
- +
  public static java.lang.classfile.attribute.LoadableDescriptorsAttribute of(java.util.List<java.lang.classfile.constantpool.Utf8Entry> arg0)
  Not in jdk-master; only in valhalla-csr-open

  ### of

  static LoadableDescriptorsAttributePREVIEW of(List<Utf8Entry> loadableDescriptors)
  Returns a `LoadableDescriptors` attribute.
  Parameters:
    `loadableDescriptors` - the loadable descriptors
  Returns:
    a `LoadableDescriptors` attribute

## Summary

Differences
| Elements | Comments | Descriptions | Total
Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed
--- | --- | --- | --- | --- | --- | --- | --- | ---
LoadableDescriptorsAttribute | 1 |  |  |  |  |  | 1 |  |  | 2
loadableDescriptorSymbols() |  |  |  |  |  |  | 1 |  |  | 1
loadableDescriptors() |  |  |  |  |  |  | 1 |  |  | 1
of(Utf8Entry[]) |  |  |  |  |  |  | 1 |  |  | 1
of(List) |  |  |  |  |  |  | 1 |  |  | 1
Total | 1 |  |  |  |  |  | 5 |  |  | 6