Uses of Interface
java.lang.classfile.Attribute
Packages that use Attribute
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing
class file attributes for the java.lang.classfile library.-
Uses of Attribute in java.lang.classfile
Classes in java.lang.classfile with type parameters of type AttributeModifier and TypeInterfaceDescriptioninterfaceModels an attribute (JVMS 4.7) in theclassfile format.interfaceAttributeMapper<A extends Attribute<A>>Bidirectional mapper between theclassfile representation of an attribute and its API model.Classes in java.lang.classfile that implement AttributeModifier and TypeClassDescriptionclassCustomAttribute<T extends CustomAttribute<T>>Models a user-defined attribute in aclassfile.Methods in java.lang.classfile with type parameters of type AttributeModifier and TypeMethodDescriptionAttributedElement.findAttribute(AttributeMapper<T> attr) Finds an attribute by name.AttributedElement.findAttributes(AttributeMapper<T> attr) Finds attributes by name.Methods in java.lang.classfile that return types with arguments of type AttributeModifier and TypeMethodDescriptionAttributedElement.attributes()Returns the attributes of this structure. -
Uses of Attribute in java.lang.classfile.attribute
Subinterfaces of Attribute in java.lang.classfile.attributeModifier and TypeInterfaceDescriptioninterfaceModels theAnnotationDefaultattribute (JVMS 4.7.22), which records the default value (JLS 9.6.2) for the annotation interface element defined by this method.interfaceModels theBootstrapMethodsattribute (JVMS 4.7.23), which stores symbolic information for the execution of bootstrap methods, used by dynamically-computed call sites and constants.interfaceModels theCharacterRangeTableattribute, which is a bidirectional mapping from ranges of positions in the source file to ranges of indices into thecodearray.interfaceinterfaceModels theCompilationIDattribute, which records the compilation time of theclassfile.interfaceModels theConstantValueattribute (JVMS 4.7.2), which indicates this field's value is a constant and that constant value.interfaceModels theDeprecatedattribute (JVMS 4.7.15), which indicates this structure has been superseded.interfaceModels theEnclosingMethodattribute (JVMS 4.7.7), which indicates that this class is a local or anonymous class, and indicates the enclosing method or constructor of this class if this class is enclosed in exactly one method or constructor.interfaceModels theExceptionsattribute (JVMS 4.7.5), which records the exceptions declared to be thrown by this method.interfaceModels theInnerClassesattribute (JVMS 4.7.6), which records which classes referenced by thisclassfile are nested classes.interfaceModels theLineNumberTableattribute (JVMS 4.7.12), which records the mapping between indexes into thecodearray and line numbers in the source file.interfaceModels theLocalVariableTableattribute (JVMS 4.7.13), which records debug information about local variables.interfaceModels theLocalVariableTypeTableattribute (JVMS 4.7.14), which records debug information about local variables with generic types.interfaceModels theMethodParametersattribute (JVMS 4.7.24), which records reflective information about this method's parameters such as access modifiers.interfaceinterfaceModels theModuleHashesattribute, which appears on classes that represent module descriptors to capture the hashes of a set of co-delivered modules.interfaceModels theModuleMainClassattribute (JVMS 4.7.27), which appears on classes that represent module descriptors to indicate the main class of the module.interfaceModels theModulePackagesattribute (JVMS 4.7.26), which can appear on classes that represent module descriptors to indicate packages in the module used by the module descriptor.interfaceModels theModuleResolutionattribute, which can appear on classes that represent module descriptors, to capture resolution metadata for modules.interfaceModels theModuleTargetattribute, which can appear on classes that represent module descriptors, to represent constraints on the target platform.interfaceinterfaceModels theNestMembersattribute (JVMS 4.7.29), which indicates that this class is the host of a nest and the other nest members.interfaceModels thePermittedSubclassesattribute (JVMS 4.7.31), which indicates this class or interface is sealed, and which classes or interfaces may extend or implement this class or interface.interfaceinterfaceModels theRuntimeInvisibleAnnotationsattribute (JVMS 4.7.17), which stores declaration annotations on this structure that are visible toclassfile consumers but are not visible to core reflection.interfaceModels theRuntimeInvisibleParameterAnnotationsattribute (JVMS 4.7.19), which stores declaration annotations on the method parameters of this method that are visible toclassfile consumers but are not visible to core reflection.interfaceModels theRuntimeInvisibleTypeAnnotationsattribute (JVMS 4.7.21), which stores type-use annotations for the annotated uses of types in this structure that are visible toclassfile consumers but are not visible to core reflection.interfaceModels theRuntimeVisibleAnnotationsattribute (JVMS 4.7.16), which stores declaration annotations on this structure that are visible to bothclassfile consumers and core reflection.interfaceModels theRuntimeVisibleParameterAnnotationsattribute (JVMS 4.7.18), which stores declaration annotations on the method parameters of this method that are visible to bothclassfile consumers and core reflection.interfaceModels theRuntimeVisibleTypeAnnotationsattribute (JVMS 4.7.20), which stores type-use annotations for the annotated uses of types in this structure that are visible to bothclassfile consumers and core reflection.interfaceinterfaceModels theSourceDebugExtensionattribute (JVMS 4.7.11), which stores arbitrary modified UTF-8 data.interfaceModels theSourceFileattribute (JVMS 4.7.10), which indicates the name of the source file from which thisclassfile was compiled.interfaceModels theSourceIDattribute, which records the last modified time of the source file from which thisclassfile was compiled.interfaceModels theStackMapTableattribute (JVMS 4.7.4), which is used for verification by type checking (4.10.1).interfaceinterfaceModels an unknown attribute read from aclassfile.Methods in java.lang.classfile.attribute with parameters of type AttributeModifier and TypeMethodDescriptionstatic RecordComponentInfoReturns a record component description.static RecordComponentInfoReturns a record component description.Method parameters in java.lang.classfile.attribute with type arguments of type AttributeModifier and TypeMethodDescriptionstatic RecordComponentInfoReturns a record component description.static RecordComponentInfoReturns a record component description.