Interface LoadableDescriptorsAttribute
- All Superinterfaces:
Attribute<LoadableDescriptorsAttributePREVIEW>, ClassElement, ClassFileElement
public sealed interface LoadableDescriptorsAttribute
extends Attribute<LoadableDescriptorsAttributePREVIEW>, ClassElement
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
LoadableDescriptorsPREVIEW
attribute (JVMS ยง4.7.32PREVIEW), which permits the JVM to
load mentioned classes and interfaces 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 is a preview VM feature in the current Java SE release.
- See Java Virtual Machine Specification:
-
4.7.32 The
LoadableDescriptorsAttributePREVIEW - Since:
- 28
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of loadable descriptors.Returns the list of loadable descriptors, as nominal descriptors.Returns aLoadableDescriptorsattribute.Returns aLoadableDescriptorsattribute.Returns aLoadableDescriptorsattribute.Returns aLoadableDescriptorsattribute.Methods declared in interface Attribute
attributeMapper, attributeNameModifier and TypeMethodDescriptionReturns theAttributeMapperassociated with this attribute.Returns the name of the attribute.
-
Method Details
-
loadableDescriptors
-
loadableDescriptorSymbols
-
of
Returns aLoadableDescriptorsattribute.- Parameters:
loadableDescriptors- the loadable descriptors- Returns:
- a
LoadableDescriptorsattribute - Throws:
IllegalArgumentException- if the number of loadable descriptors exceeds the limit ofu2
-
of
Returns aLoadableDescriptorsattribute.- Parameters:
loadableDescriptors- the loadable descriptors- Returns:
- a
LoadableDescriptorsattribute - Throws:
IllegalArgumentException- if the number of loadable descriptors exceeds the limit ofu2
-
ofSymbols
Returns aLoadableDescriptorsattribute.- Parameters:
loadableDescriptors- the loadable descriptors- Returns:
- a
LoadableDescriptorsattribute - Throws:
IllegalArgumentException- if the number of loadable descriptors exceeds the limit ofu2
-
ofSymbols
Returns aLoadableDescriptorsattribute.- Parameters:
loadableDescriptors- the loadable descriptors- Returns:
- a
LoadableDescriptorsattribute - Throws:
IllegalArgumentException- if the number of loadable descriptors exceeds the limit ofu2
-