Package java.lang.classfile.attribute
package java.lang.classfile.attribute
Provides interfaces describing classfile attributes for the java.lang.classfile
library.
The java.lang.classfile.attribute
package contains interfaces describing classfile attributes.- Since:
- 24
-
ClassDescriptionModels the
BootstrapMethods
attribute (JVMS 4.7.23), which serves as an extension to the constant pool of a classfile.Models a single character range in theCharacterRangeTableAttribute
.The CharacterRangeTable attribute is an optional variable-length attribute in the attributes table of aCode
attribute.Models theCode
attribute (JVMS 4.7.3), appears on non-native, non-abstract methods and contains the bytecode of the method body.Models theCompilationID
attribute (@@@ need reference), which can appear on classes and records the compilation time of the class.Models theConstantValue
attribute (JVMS 4.7.2), which can appear on fields and indicates that the field's value is a constant.Models theDeprecated
attribute (JVMS 4.7.15), which can appear on classes, methods, and fields.Models theEnclosingMethod
attribute (JVMS 4.7.7), which can appear on classes, and indicates that the class is a local or anonymous class.Models theExceptions
attribute (JVMS 4.7.5), which can appear on methods, and records the exceptions declared to be thrown by this method.Models theInnerClasses
attribute (JVMS 4.7.6), which can appear on classes, and records which classes referenced by this classfile are inner classes.Models a single inner class in theInnerClassesAttribute
.Models a single line number in theLineNumberTableAttribute
.Models theLineNumberTable
attribute (JVMS 4.7.12), which can appear on aCode
attribute, and records the mapping between indexes into the code table and line numbers in the source file.Models a single local variable in theLocalVariableTableAttribute
.Models theLocalVariableTable
attribute (JVMS 4.7.13), which can appear on aCode
attribute, and records debug information about local variables.Models a single local variable in theLocalVariableTypeTableAttribute
.Models theLocalVariableTypeTable
attribute (JVMS 4.7.14), which can appear on aCode
attribute, and records debug information about local variables.Models a single method parameter in theMethodParametersAttribute
.Models theMethodParameters
attribute (JVMS 4.7.24), which can appear on methods, and records optional information about the method's parameters.Models theModule
attribute (JVMS 4.7.25), which can appear on classes that represent module descriptors.A builder for module attributes.Models a single "exports" declaration in theModuleAttribute
.Models theModuleHashes
attribute, which can appear on classes that represent module descriptors.Models hash information for a single module in theModuleHashesAttribute
.Models theModuleMainClass
attribute (JVMS 4.7.27), which can appear on classes that represent module descriptors.Models a single "opens" declaration in theModuleAttribute
.Models theModulePackages
attribute (JVMS 4.7.26), which can appear on classes that represent module descriptors.Models a single "provides" declaration in theModuleAttribute
.Models a single "requires" declaration in theModuleAttribute
.Models theModuleResolution
attribute, which can appear on classes that represent module descriptors.Models theModuleTarget
attribute, which can appear on classes that represent module descriptors.Models theNestHost
attribute (JVMS 4.7.28), which can appear on classes to indicate that this class is a member of a nest.Models theNestMembers
attribute (JVMS 4.7.29), which can appear on classes to indicate that this class is the host of a nest.Models thePermittedSubclasses
attribute (JVMS 4.7.31), which can appear on classes to indicate which classes may extend this class.Models theRecord
attribute (JVMS 4.7.30), which can appear on classes to indicate that this class is a record class.Models a single record component in theRecordAttribute
.Models theRuntimeInvisibleAnnotations
attribute (JVMS 4.7.17), which can appear on classes, methods, and fields.Models theRuntimeInvisibleParameterAnnotations
attribute (JVMS 4.7.19), which can appear on methods.Models theRuntimeInvisibleTypeAnnotations
attribute (JVMS 4.7.21), which can appear on classes, methods, fields, and code attributes.Models theRuntimeVisibleAnnotations
attribute (JVMS 4.7.16), which can appear on classes, methods, and fields.Models theRuntimeVisibleParameterAnnotations
attribute (JVMS 4.7.18), which can appear on methods.Models theRuntimeVisibleTypeAnnotations
attribute (JVMS 4.7.20), which can appear on classes, methods, fields, and code attributes.Models theSignature
attribute (JVMS 4.7.9), which can appear on classes, methods, or fields.Models theSourceDebugExtension
attribute.Models theSourceFile
attribute (JVMS 4.7.10), which can appear on classes.Models theSourceID
attribute, which can appear on classes.Models stack map frame ofStackMapTable
attribute (JVMS 4.7.4).A stack value for an object type.A simple stack value.An uninitialized stack value.The type of a stack value.Models theSynthetic
attribute (JVMS 4.7.8), which can appear on classes, methods, and fields.Models an unknown attribute on a class, method, or field.