Uses of Interface
java.lang.classfile.Attribute
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing classfile attributes for the
java.lang.classfile
library.-
Uses of Attribute in java.lang.classfile
Modifier and TypeInterfaceDescriptioninterface
Models a classfile attribute (JVMS 4.7).interface
AttributeMapper<A extends Attribute<A>>
Bidirectional mapper between the classfile representation of an attribute and how that attribute is modeled in the API.Modifier and TypeClassDescriptionclass
CustomAttribute<T extends CustomAttribute<T>>
Models a non-standard attribute of a classfile.Modifier and TypeMethodDescriptionAttributedElement.findAttribute
(AttributeMapper<T> attr) Finds an attribute by name.AttributedElement.findAttributes
(AttributeMapper<T> attr) Finds one or more attributes by name.Modifier and TypeMethodDescriptionAttributedElement.attributes()
Returns the attributes of this element. -
Uses of Attribute in java.lang.classfile.attribute
Modifier and TypeInterfaceDescriptioninterface
interface
Models theBootstrapMethods
attribute (JVMS 4.7.23), which serves as an extension to the constant pool of a classfile.interface
The CharacterRangeTable attribute is an optional variable-length attribute in the attributes table of aCode
attribute.interface
Models theCode
attribute (JVMS 4.7.3), appears on non-native, non-abstract methods and contains the bytecode of the method body.interface
Models theCompilationID
attribute (@@@ need reference), which can appear on classes and records the compilation time of the class.interface
Models theConstantValue
attribute (JVMS 4.7.2), which can appear on fields and indicates that the field's value is a constant.interface
Models theDeprecated
attribute (JVMS 4.7.15), which can appear on classes, methods, and fields.interface
Models theEnclosingMethod
attribute (JVMS 4.7.7), which can appear on classes, and indicates that the class is a local or anonymous class.interface
Models theExceptions
attribute (JVMS 4.7.5), which can appear on methods, and records the exceptions declared to be thrown by this method.interface
Models theInnerClasses
attribute (JVMS 4.7.6), which can appear on classes, and records which classes referenced by this classfile are inner classes.interface
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.interface
Models theLocalVariableTable
attribute (JVMS 4.7.13), which can appear on aCode
attribute, and records debug information about local variables.interface
Models theLocalVariableTypeTable
attribute (JVMS 4.7.14), which can appear on aCode
attribute, and records debug information about local variables.interface
Models theMethodParameters
attribute (JVMS 4.7.24), which can appear on methods, and records optional information about the method's parameters.interface
Models theModule
attribute (JVMS 4.7.25), which can appear on classes that represent module descriptors.interface
Models theModuleHashes
attribute, which can appear on classes that represent module descriptors.interface
Models theModuleMainClass
attribute (JVMS 4.7.27), which can appear on classes that represent module descriptors.interface
Models theModulePackages
attribute (JVMS 4.7.26), which can appear on classes that represent module descriptors.interface
Models theModuleResolution
attribute, which can appear on classes that represent module descriptors.interface
Models theModuleTarget
attribute, which can appear on classes that represent module descriptors.interface
Models theNestHost
attribute (JVMS 4.7.28), which can appear on classes to indicate that this class is a member of a nest.interface
Models theNestMembers
attribute (JVMS 4.7.29), which can appear on classes to indicate that this class is the host of a nest.interface
Models thePermittedSubclasses
attribute (JVMS 4.7.31), which can appear on classes to indicate which classes may extend this class.interface
Models theRecord
attribute (JVMS 4.7.30), which can appear on classes to indicate that this class is a record class.interface
Models theRuntimeInvisibleAnnotations
attribute (JVMS 4.7.17), which can appear on classes, methods, and fields.interface
Models theRuntimeInvisibleParameterAnnotations
attribute (JVMS 4.7.19), which can appear on methods.interface
Models theRuntimeInvisibleTypeAnnotations
attribute (JVMS 4.7.21), which can appear on classes, methods, fields, and code attributes.interface
Models theRuntimeVisibleAnnotations
attribute (JVMS 4.7.16), which can appear on classes, methods, and fields.interface
Models theRuntimeVisibleParameterAnnotations
attribute (JVMS 4.7.18), which can appear on methods.interface
Models theRuntimeVisibleTypeAnnotations
attribute (JVMS 4.7.20), which can appear on classes, methods, fields, and code attributes.interface
Models theSignature
attribute (JVMS 4.7.9), which can appear on classes, methods, or fields.interface
Models theSourceDebugExtension
attribute.interface
Models theSourceFile
attribute (JVMS 4.7.10), which can appear on classes.interface
Models theSourceID
attribute, which can appear on classes.interface
interface
Models theSynthetic
attribute (JVMS 4.7.8), which can appear on classes, methods, and fields.interface
Models an unknown attribute on a class, method, or field.Modifier and TypeMethodDescriptionstatic RecordComponentInfo
Returns a record component description.static RecordComponentInfo
Returns a record component description.Modifier and TypeMethodDescriptionstatic RecordComponentInfo
Returns a record component description.static RecordComponentInfo
Returns a record component description.