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.
NestMembers Attribute
Attributes#nestMembers(), NestHostAttribute, Class#getNestMembers(), Class#isNestmateOf(Class)
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: the classes belonging to the nest hosted by this classReturns the classes belonging to the nest hosted by this class. |
| public static NestMembersAttribute | Returns: aNestMembers attributethe member classes of the nest nestMembers)Returns a |
| public static NestMembersAttribute | Returns: aNestMembers attributethe member classes of the nest nestMembers)Returns a |
| public static NestMembersAttribute | |
| public static NestMembersAttribute |
| nestMembers | back to summary |
|---|---|
| public List Returns the classes belonging to the nest hosted by this class.
| |
| of | back to summary |
|---|---|
| public static NestMembersAttribute of(List<ClassEntry> nestMembers) Returns a
| |
| of | back to summary |
|---|---|
| public static NestMembersAttribute of(ClassEntry... nestMembers) Returns a
| |
| ofSymbols | back to summary |
|---|---|
| public static NestMembersAttribute ofSymbols(List<ClassDesc> nestMembers) Returns a
| |
| ofSymbols | back to summary |
|---|---|
| public static NestMembersAttribute ofSymbols(ClassDesc... nestMembers) Returns a
| |