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

# Interface NestMembersAttribute

≠
public abstract sealed interface NestMembersAttribute
extends java.lang.classfile.Attribute<java.lang.classfile.attribute.NestMembersAttribute>, java.lang.classfile.ClassElement
permits jdk.internal.classfile.impl.BoundAttribute.BoundNestMembersAttribute, jdk.internal.classfile.impl.UnboundAttribute.UnboundNestMembersAttribute
Comparing jdk-master and valhalla-csr-open

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

public sealed interface NestMembersAttribute extends AttributePREVIEW <NestMembersAttribute>, ClassElementPREVIEW
Models the `NestMembers` attribute (JVMS §4.7.29), which indicates that this class is the host of a nest and the other nest members.

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 11, major version 55.

See Java Virtual Machine Specification:
  4.7.29 The `NestMembers` Attribute
Since:
  24
See Also:
  - `Attributes.nestMembers()`
  - `NestHostAttribute`
  - `Class.getNestMembers()`
  - `Class.isNestmateOf(Class)`

## Methods

- =
  public abstract java.util.List<java.lang.classfile.constantpool.ClassEntry> nestMembers()
- =
  public static java.lang.classfile.attribute.NestMembersAttribute of(java.lang.classfile.constantpool.ClassEntry[] arg0)
- =
  public static java.lang.classfile.attribute.NestMembersAttribute of(java.util.List<java.lang.classfile.constantpool.ClassEntry> arg0)
- =
  public static java.lang.classfile.attribute.NestMembersAttribute ofSymbols(java.lang.constant.ClassDesc[] arg0)
- =
  public static java.lang.classfile.attribute.NestMembersAttribute ofSymbols(java.util.List<java.lang.constant.ClassDesc> arg0)

## Summary

Differences
| Elements | Comments | Descriptions | Total
Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed
--- | --- | --- | --- | --- | --- | --- | --- | ---
NestMembersAttribute |  |  |  |  |  |  | 4 |  |  | 4
Total |  |  |  |  |  |  | 4 |  |  | 4