Module java.base
Package java.lang.classfile.attribute
package java.lang.classfile.attribute
java.lang.classfile.attribute is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Provides interfaces describing classfile attributes for the java.lang.classfilePREVIEW library.
 The java.lang.classfile.attribute package contains interfaces describing classfile attributes.- Since:
- 22
- 
ClassDescriptionPreview.Preview.Models theBootstrapMethodsattribute 4.7.23, which serves as an extension to the constant pool of a classfile.Preview.Models a single character range in theCharacterRangeTableAttributePREVIEW.Preview.The CharacterRangeTable attribute is an optional variable-length attribute in the attributes table of aCodeattribute.Preview.Models theCodeattribute 4.7.3, appears on non-native, non-abstract methods and contains the bytecode of the method body.Preview.Models theCompilationIDattribute (@@@ need reference), which can appear on classes and records the compilation time of the class.Preview.Models theConstantValueattribute 4.7.2, which can appear on fields and indicates that the field's value is a constant.Preview.Models theDeprecatedattribute 4.7.15, which can appear on classes, methods, and fields.Preview.Models theEnclosingMethodattribute 4.7.7, which can appear on classes, and indicates that the class is a local or anonymous class.Preview.Models theExceptionsattribute 4.7.5, which can appear on methods, and records the exceptions declared to be thrown by this method.Preview.Models theInnerClassesattribute 4.7.6, which can appear on classes, and records which classes referenced by this classfile are inner classes.Preview.Models a single inner class in theInnerClassesAttributePREVIEW.Preview.Models a single line number in theLineNumberTableAttributePREVIEW.Preview.Models theLineNumberTableattribute 4.7.12, which can appear on aCodeattribute, and records the mapping between indexes into the code table and line numbers in the source file.Preview.Models a single local variable in theLocalVariableTableAttributePREVIEW.Preview.Models theLocalVariableTableattribute 4.7.13, which can appear on aCodeattribute, and records debug information about local variables.Preview.Models a single local variable in theLocalVariableTypeTableAttributePREVIEW.Preview.Models theLocalVariableTypeTableattribute 4.7.14, which can appear on aCodeattribute, and records debug information about local variables.Preview.Models a single method parameter in theMethodParametersAttributePREVIEW.Preview.Models theMethodParametersattribute 4.7.24, which can appear on methods, and records optional information about the method's parameters.Preview.Models theModuleattribute 4.7.25, which can appear on classes that represent module descriptors.Preview.A builder for module attributes.Preview.Models a single "exports" declaration in theModuleAttributePREVIEW.Preview.Models theModuleHashesattribute, which can appear on classes that represent module descriptors.Preview.Models hash information for a single module in theModuleHashesAttributePREVIEW.Preview.Models theModuleMainClassattribute 4.7.27, which can appear on classes that represent module descriptors.Preview.Models a single "opens" declaration in theModuleAttributePREVIEW.Preview.Models theModulePackagesattribute 4.7.26, which can appear on classes that represent module descriptors.Preview.Models a single "provides" declaration in theModuleAttributePREVIEW.Preview.Models a single "requires" declaration in theModuleAttributePREVIEW.Preview.Models theModuleResolutionattribute, which can appear on classes that represent module descriptors.Preview.Models theModuleTargetattribute, which can appear on classes that represent module descriptors.Preview.Models theNestHostattribute 4.7.28, which can appear on classes to indicate that this class is a member of a nest.Preview.Models theNestMembersattribute 4.7.29, which can appear on classes to indicate that this class is the host of a nest.Preview.Models thePermittedSubclassesattribute 4.7.31, which can appear on classes to indicate which classes may extend this class.Preview.Models theRecordattribute 4.7.30, which can appear on classes to indicate that this class is a record class.Preview.Models a single record component in theRecordAttributePREVIEW.Preview.Models theRuntimeInvisibleAnnotationsattribute 4.7.17, which can appear on classes, methods, and fields.Preview.Models theRuntimeInvisibleParameterAnnotationsattribute 4.7.19, which can appear on methods.Preview.Models theRuntimeInvisibleTypeAnnotationsattribute 4.7.21, which can appear on classes, methods, fields, and code attributes.Preview.Models theRuntimeVisibleAnnotationsattribute 4.7.16, which can appear on classes, methods, and fields.Preview.Models theRuntimeVisibleParameterAnnotationsattribute 4.7.18, which can appear on methods.Preview.Models theRuntimeVisibleTypeAnnotationsattribute 4.7.20, which can appear on classes, methods, fields, and code attributes.Preview.Models theSignatureattribute 4.7.9, which can appear on classes, methods, or fields.Preview.Models theSourceDebugExtensionattribute.Preview.Models theSourceFileattribute 4.7.10, which can appear on classes.Preview.Models theSourceIDattribute, which can appear on classes.Preview.Models stack map frame ofStackMapTableattribute 4.7.4.Preview.A stack value for an object type.Preview.A simple stack value.Preview.An uninitialized stack value.Preview.The type of a stack value.Preview.Preview.Models theSyntheticattribute 4.7.8, which can appear on classes, methods, and fields.Preview.Models an unknown attribute on a class, method, or field.
java.lang.classfile.attributewhen preview features are enabled.