# Uses of Package
java.lang.classfile.attribute

Packages that use java.lang.classfile.attributePREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.attribute
Provides interfaces describing classfile attributes for the `java.lang.classfile`PREVIEW library.

- Classes in java.lang.classfile.attributePREVIEW used by java.lang.classfilePREVIEW
  Class
  Description
  AnnotationDefaultAttribute
  Preview.
  Models the `AnnotationDefault` attribute 4.7.22, which can appear on methods of annotation types, and records the default value 9.6.2 for the element corresponding to this method.
  BootstrapMethodsAttribute
  Preview.
  Models the `BootstrapMethods` attribute 4.7.23, which serves as an extension to the constant pool of a classfile.
  CharacterRangeTableAttribute
  Preview.
  The CharacterRangeTable attribute is an optional variable-length attribute in the attributes table of a `Code` attribute.
  CodeAttribute
  Preview.
  Models the `Code` attribute 4.7.3, appears on non-native, non-abstract methods and contains the bytecode of the method body.
  CompilationIDAttribute
  Preview.
  Models the `CompilationID` attribute (@@@ need reference), which can appear on classes and records the compilation time of the class.
  ConstantValueAttribute
  Preview.
  Models the `ConstantValue` attribute 4.7.2, which can appear on fields and indicates that the field's value is a constant.
  DeprecatedAttribute
  Preview.
  Models the `Deprecated` attribute 4.7.15, which can appear on classes, methods, and fields.
  EnclosingMethodAttribute
  Preview.
  Models the `EnclosingMethod` attribute 4.7.7, which can appear on classes, and indicates that the class is a local or anonymous class.
  ExceptionsAttribute
  Preview.
  Models the `Exceptions` attribute 4.7.5, which can appear on methods, and records the exceptions declared to be thrown by this method.
  InnerClassesAttribute
  Preview.
  Models the `InnerClasses` attribute 4.7.6, which can appear on classes, and records which classes referenced by this classfile are inner classes.
  LineNumberTableAttribute
  Preview.
  Models the `LineNumberTable` attribute 4.7.12, which can appear on a `Code` attribute, and records the mapping between indexes into the code table and line numbers in the source file.
  LocalVariableTableAttribute
  Preview.
  Models the `LocalVariableTable` attribute 4.7.13, which can appear on a `Code` attribute, and records debug information about local variables.
  LocalVariableTypeTableAttribute
  Preview.
  Models the `LocalVariableTypeTable` attribute 4.7.14, which can appear on a `Code` attribute, and records debug information about local variables.
  MethodParametersAttribute
  Preview.
  Models the `MethodParameters` attribute 4.7.24, which can appear on methods, and records optional information about the method's parameters.
  ModuleAttribute
  Preview.
  Models the `Module` attribute 4.7.25, which can appear on classes that represent module descriptors.
  ModuleHashesAttribute
  Preview.
  Models the `ModuleHashes` attribute, which can appear on classes that represent module descriptors.
  ModuleMainClassAttribute
  Preview.
  Models the `ModuleMainClass` attribute 4.7.27, which can appear on classes that represent module descriptors.
  ModulePackagesAttribute
  Preview.
  Models the `ModulePackages` attribute 4.7.26, which can appear on classes that represent module descriptors.
  ModuleResolutionAttribute
  Preview.
  Models the `ModuleResolution` attribute, which can appear on classes that represent module descriptors.
  ModuleTargetAttribute
  Preview.
  Models the `ModuleTarget` attribute, which can appear on classes that represent module descriptors.
  NestHostAttribute
  Preview.
  Models the `NestHost` attribute 4.7.28, which can appear on classes to indicate that this class is a member of a nest.
  NestMembersAttribute
  Preview.
  Models the `NestMembers` attribute 4.7.29, which can appear on classes to indicate that this class is the host of a nest.
  PermittedSubclassesAttribute
  Preview.
  Models the `PermittedSubclasses` attribute 4.7.31, which can appear on classes to indicate which classes may extend this class.
  RecordAttribute
  Preview.
  Models the `Record` attribute 4.7.30, which can appear on classes to indicate that this class is a record class.
  RuntimeInvisibleAnnotationsAttribute
  Preview.
  Models the `RuntimeInvisibleAnnotations` attribute 4.7.17, which can appear on classes, methods, and fields.
  RuntimeInvisibleParameterAnnotationsAttribute
  Preview.
  Models the `RuntimeInvisibleParameterAnnotations` attribute 4.7.19, which can appear on methods.
  RuntimeInvisibleTypeAnnotationsAttribute
  Preview.
  Models the `RuntimeInvisibleTypeAnnotations` attribute 4.7.21, which can appear on classes, methods, fields, and code attributes.
  RuntimeVisibleAnnotationsAttribute
  Preview.
  Models the `RuntimeVisibleAnnotations` attribute 4.7.16, which can appear on classes, methods, and fields.
  RuntimeVisibleParameterAnnotationsAttribute
  Preview.
  Models the `RuntimeVisibleParameterAnnotations` attribute 4.7.18, which can appear on methods.
  RuntimeVisibleTypeAnnotationsAttribute
  Preview.
  Models the `RuntimeVisibleTypeAnnotations` attribute 4.7.20, which can appear on classes, methods, fields, and code attributes.
  SignatureAttribute
  Preview.
  Models the `Signature` attribute 4.7.9, which can appear on classes, methods, or fields.
  SourceDebugExtensionAttribute
  Preview.
  Models the `SourceDebugExtension` attribute.
  SourceFileAttribute
  Preview.
  Models the `SourceFile` attribute 4.7.10, which can appear on classes.
  SourceIDAttribute
  Preview.
  Models the `SourceID` attribute, which can appear on classes.
  StackMapTableAttribute
  Preview.
  Models the `StackMapTable` attribute 4.7.4, which can appear on a `Code` attribute.
  SyntheticAttribute
  Preview.
  Models the `Synthetic` attribute 4.7.8, which can appear on classes, methods, and fields.
- Classes in java.lang.classfile.attributePREVIEW used by java.lang.classfile.attributePREVIEW
  Class
  Description
  AnnotationDefaultAttribute
  Preview.
  Models the `AnnotationDefault` attribute 4.7.22, which can appear on methods of annotation types, and records the default value 9.6.2 for the element corresponding to this method.
  BootstrapMethodsAttribute
  Preview.
  Models the `BootstrapMethods` attribute 4.7.23, which serves as an extension to the constant pool of a classfile.
  CharacterRangeInfo
  Preview.
  Models a single character range in the `CharacterRangeTableAttribute`PREVIEW.
  CharacterRangeTableAttribute
  Preview.
  The CharacterRangeTable attribute is an optional variable-length attribute in the attributes table of a `Code` attribute.
  CodeAttribute
  Preview.
  Models the `Code` attribute 4.7.3, appears on non-native, non-abstract methods and contains the bytecode of the method body.
  CompilationIDAttribute
  Preview.
  Models the `CompilationID` attribute (@@@ need reference), which can appear on classes and records the compilation time of the class.
  ConstantValueAttribute
  Preview.
  Models the `ConstantValue` attribute 4.7.2, which can appear on fields and indicates that the field's value is a constant.
  DeprecatedAttribute
  Preview.
  Models the `Deprecated` attribute 4.7.15, which can appear on classes, methods, and fields.
  EnclosingMethodAttribute
  Preview.
  Models the `EnclosingMethod` attribute 4.7.7, which can appear on classes, and indicates that the class is a local or anonymous class.
  ExceptionsAttribute
  Preview.
  Models the `Exceptions` attribute 4.7.5, which can appear on methods, and records the exceptions declared to be thrown by this method.
  InnerClassesAttribute
  Preview.
  Models the `InnerClasses` attribute 4.7.6, which can appear on classes, and records which classes referenced by this classfile are inner classes.
  InnerClassInfo
  Preview.
  Models a single inner class in the `InnerClassesAttribute`PREVIEW.
  LineNumberInfo
  Preview.
  Models a single line number in the `LineNumberTableAttribute`PREVIEW.
  LineNumberTableAttribute
  Preview.
  Models the `LineNumberTable` attribute 4.7.12, which can appear on a `Code` attribute, and records the mapping between indexes into the code table and line numbers in the source file.
  LocalVariableInfo
  Preview.
  Models a single local variable in the `LocalVariableTableAttribute`PREVIEW.
  LocalVariableTableAttribute
  Preview.
  Models the `LocalVariableTable` attribute 4.7.13, which can appear on a `Code` attribute, and records debug information about local variables.
  LocalVariableTypeInfo
  Preview.
  Models a single local variable in the `LocalVariableTypeTableAttribute`PREVIEW.
  LocalVariableTypeTableAttribute
  Preview.
  Models the `LocalVariableTypeTable` attribute 4.7.14, which can appear on a `Code` attribute, and records debug information about local variables.
  MethodParameterInfo
  Preview.
  Models a single method parameter in the `MethodParametersAttribute`PREVIEW.
  MethodParametersAttribute
  Preview.
  Models the `MethodParameters` attribute 4.7.24, which can appear on methods, and records optional information about the method's parameters.
  ModuleAttribute
  Preview.
  Models the `Module` attribute 4.7.25, which can appear on classes that represent module descriptors.
  ModuleAttribute.ModuleAttributeBuilder
  Preview.
  A builder for module attributes.
  ModuleExportInfo
  Preview.
  Models a single "exports" declaration in the `ModuleAttribute`PREVIEW.
  ModuleHashesAttribute
  Preview.
  Models the `ModuleHashes` attribute, which can appear on classes that represent module descriptors.
  ModuleHashInfo
  Preview.
  Models hash information for a single module in the `ModuleHashesAttribute`PREVIEW.
  ModuleMainClassAttribute
  Preview.
  Models the `ModuleMainClass` attribute 4.7.27, which can appear on classes that represent module descriptors.
  ModuleOpenInfo
  Preview.
  Models a single "opens" declaration in the `ModuleAttribute`PREVIEW.
  ModulePackagesAttribute
  Preview.
  Models the `ModulePackages` attribute 4.7.26, which can appear on classes that represent module descriptors.
  ModuleProvideInfo
  Preview.
  Models a single "provides" declaration in the `ModuleAttribute`PREVIEW.
  ModuleRequireInfo
  Preview.
  Models a single "requires" declaration in the `ModuleAttribute`PREVIEW.
  ModuleResolutionAttribute
  Preview.
  Models the `ModuleResolution` attribute, which can appear on classes that represent module descriptors.
  ModuleTargetAttribute
  Preview.
  Models the `ModuleTarget` attribute, which can appear on classes that represent module descriptors.
  NestHostAttribute
  Preview.
  Models the `NestHost` attribute 4.7.28, which can appear on classes to indicate that this class is a member of a nest.
  NestMembersAttribute
  Preview.
  Models the `NestMembers` attribute 4.7.29, which can appear on classes to indicate that this class is the host of a nest.
  PermittedSubclassesAttribute
  Preview.
  Models the `PermittedSubclasses` attribute 4.7.31, which can appear on classes to indicate which classes may extend this class.
  RecordAttribute
  Preview.
  Models the `Record` attribute 4.7.30, which can appear on classes to indicate that this class is a record class.
  RecordComponentInfo
  Preview.
  Models a single record component in the `RecordAttribute`PREVIEW.
  RuntimeInvisibleAnnotationsAttribute
  Preview.
  Models the `RuntimeInvisibleAnnotations` attribute 4.7.17, which can appear on classes, methods, and fields.
  RuntimeInvisibleParameterAnnotationsAttribute
  Preview.
  Models the `RuntimeInvisibleParameterAnnotations` attribute 4.7.19, which can appear on methods.
  RuntimeInvisibleTypeAnnotationsAttribute
  Preview.
  Models the `RuntimeInvisibleTypeAnnotations` attribute 4.7.21, which can appear on classes, methods, fields, and code attributes.
  RuntimeVisibleAnnotationsAttribute
  Preview.
  Models the `RuntimeVisibleAnnotations` attribute 4.7.16, which can appear on classes, methods, and fields.
  RuntimeVisibleParameterAnnotationsAttribute
  Preview.
  Models the `RuntimeVisibleParameterAnnotations` attribute 4.7.18, which can appear on methods.
  RuntimeVisibleTypeAnnotationsAttribute
  Preview.
  Models the `RuntimeVisibleTypeAnnotations` attribute 4.7.20, which can appear on classes, methods, fields, and code attributes.
  SignatureAttribute
  Preview.
  Models the `Signature` attribute 4.7.9, which can appear on classes, methods, or fields.
  SourceDebugExtensionAttribute
  Preview.
  Models the `SourceDebugExtension` attribute.
  SourceFileAttribute
  Preview.
  Models the `SourceFile` attribute 4.7.10, which can appear on classes.
  SourceIDAttribute
  Preview.
  Models the `SourceID` attribute, which can appear on classes.
  StackMapFrameInfo
  Preview.
  Models stack map frame of `StackMapTable` attribute 4.7.4.
  StackMapFrameInfo.ObjectVerificationTypeInfo
  Preview.
  A stack value for an object type.
  StackMapFrameInfo.SimpleVerificationTypeInfo
  Preview.
  A simple stack value.
  StackMapFrameInfo.UninitializedVerificationTypeInfo
  Preview.
  An uninitialized stack value.
  StackMapFrameInfo.VerificationTypeInfo
  Preview.
  The type of a stack value.
  StackMapTableAttribute
  Preview.
  Models the `StackMapTable` attribute 4.7.4, which can appear on a `Code` attribute.
  SyntheticAttribute
  Preview.
  Models the `Synthetic` attribute 4.7.8, which can appear on classes, methods, and fields.
  UnknownAttribute
  Preview.
  Models an unknown attribute on a class, method, or field.