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

# Interface NestHostAttribute

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

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

public sealed interface NestHostAttribute extends AttributePREVIEW <NestHostAttribute>, ClassElementPREVIEW
Models the `NestHost` attribute (JVMS §4.7.28), which indicates this class is a member of a nest and the host class of the nest.

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.28 The `NestHost` Attribute
Since:
  24
See Also:
  - `Attributes.nestHost()`
  - `NestMembersAttribute`
  - `Class.getNestHost()`
  - `Class.isNestmateOf(Class)`

## Methods

- =
  public abstract java.lang.classfile.constantpool.ClassEntry nestHost()
- =
  public static java.lang.classfile.attribute.NestHostAttribute of(java.lang.classfile.constantpool.ClassEntry arg0)
- =
  public static java.lang.classfile.attribute.NestHostAttribute of(java.lang.constant.ClassDesc arg0)

## Summary

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