public final class Attributes extends Object
Unless otherwise specified, each mapper returned by methods in this class:
| Modifier and Type | Field | Description |
|---|---|---|
static final String |
NAME_ANNOTATION_DEFAULT |
AnnotationDefault |
static final String |
NAME_BOOTSTRAP_METHODS |
BootstrapMethods |
static final String |
NAME_CHARACTER_RANGE_TABLE |
CharacterRangeTable |
static final String |
NAME_CODE |
Code |
static final String |
NAME_COMPILATION_ID |
CompilationID |
static final String |
NAME_CONSTANT_VALUE |
ConstantValue |
static final String |
NAME_DEPRECATED |
Deprecated |
static final String |
NAME_ENCLOSING_METHOD |
EnclosingMethod |
static final String |
NAME_EXCEPTIONS |
Exceptions |
static final String |
NAME_INNER_CLASSES |
InnerClasses |
static final String |
NAME_LINE_NUMBER_TABLE |
LineNumberTable |
static final String |
NAME_LOCAL_VARIABLE_TABLE |
LocalVariableTable |
static final String |
NAME_LOCAL_VARIABLE_TYPE_TABLE |
LocalVariableTypeTable |
static final String |
NAME_METHOD_PARAMETERS |
MethodParameters |
static final String |
NAME_MODULE |
Module |
static final String |
NAME_MODULE_HASHES |
ModuleHashes |
static final String |
NAME_MODULE_MAIN_CLASS |
ModuleMainClass |
static final String |
NAME_MODULE_PACKAGES |
ModulePackages |
static final String |
NAME_MODULE_RESOLUTION |
ModuleResolution |
static final String |
NAME_MODULE_TARGET |
ModuleTarget |
static final String |
NAME_NEST_HOST |
NestHost |
static final String |
NAME_NEST_MEMBERS |
NestMembers |
static final String |
NAME_PERMITTED_SUBCLASSES |
PermittedSubclasses |
static final String |
NAME_RECORD |
Record |
static final String |
NAME_RUNTIME_INVISIBLE_ANNOTATIONS |
RuntimeInvisibleAnnotations |
static final String |
NAME_RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS |
RuntimeInvisibleParameterAnnotations |
static final String |
NAME_RUNTIME_INVISIBLE_TYPE_ANNOTATIONS |
RuntimeInvisibleTypeAnnotations |
static final String |
NAME_RUNTIME_VISIBLE_ANNOTATIONS |
RuntimeVisibleAnnotations |
static final String |
NAME_RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS |
RuntimeVisibleParameterAnnotations |
static final String |
NAME_RUNTIME_VISIBLE_TYPE_ANNOTATIONS |
RuntimeVisibleTypeAnnotations |
static final String |
NAME_SIGNATURE |
Signature |
static final String |
NAME_SOURCE_DEBUG_EXTENSION |
SourceDebugExtension |
static final String |
NAME_SOURCE_FILE |
SourceFile |
static final String |
NAME_SOURCE_ID |
SourceID |
static final String |
NAME_STACK_MAP_TABLE |
StackMapTable |
static final String |
NAME_SYNTHETIC |
Synthetic |
| Modifier and Type | Method | Description |
|---|---|---|
static AttributeMapper |
annotationDefault() |
Returns the mapper for the AnnotationDefault attribute. |
static AttributeMapper |
bootstrapMethods() |
Returns the mapper for the BootstrapMethods attribute. |
static AttributeMapper |
characterRangeTable() |
Returns the mapper for the CharacterRangeTable attribute. |
static AttributeMapper |
code() |
Returns the mapper for the Code attribute. |
static AttributeMapper |
compilationId() |
Returns the mapper for the CompilationID attribute. |
static AttributeMapper |
constantValue() |
Returns the mapper for the ConstantValue attribute. |
static AttributeMapper |
deprecated() |
Returns the mapper for the Deprecated attribute. |
static AttributeMapper |
enclosingMethod() |
Returns the mapper for the EnclosingMethod attribute. |
static AttributeMapper |
exceptions() |
Returns the mapper for the Exceptions attribute. |
static AttributeMapper |
innerClasses() |
Returns the mapper for the InnerClasses attribute. |
static AttributeMapper |
lineNumberTable() |
Returns the mapper for the LineNumberTable attribute. |
static AttributeMapper |
localVariableTable() |
Returns the mapper for the LocalVariableTable attribute. |
static AttributeMapper |
localVariableTypeTable() |
Returns the mapper for the LocalVariableTypeTable attribute. |
static AttributeMapper |
methodParameters() |
Returns the mapper for the MethodParameters attribute. |
static AttributeMapper |
module() |
Returns the mapper for the Module attribute. |
static AttributeMapper |
moduleHashes() |
Returns the mapper for the ModuleHashes attribute. |
static AttributeMapper |
moduleMainClass() |
Returns the mapper for the ModuleMainClass attribute. |
static AttributeMapper |
modulePackages() |
Returns the mapper for the ModulePackages attribute. |
static AttributeMapper |
moduleResolution() |
Returns the mapper for the ModuleResolution attribute. |
static AttributeMapper |
moduleTarget() |
Returns the mapper for the ModuleTarget attribute. |
static AttributeMapper |
nestHost() |
Returns the mapper for the NestHost attribute. |
static AttributeMapper |
nestMembers() |
Returns the mapper for the NestMembers attribute. |
static AttributeMapper |
permittedSubclasses() |
Returns the mapper for the PermittedSubclasses attribute. |
static AttributeMapper |
record() |
Returns the mapper for the Record attribute. |
static AttributeMapper |
runtimeInvisibleAnnotations() |
Returns the mapper for the RuntimeInvisibleAnnotations attribute. |
static AttributeMapper |
runtimeInvisibleParameterAnnotations() |
Returns the mapper for the RuntimeInvisibleParameterAnnotations attribute. |
static AttributeMapper |
runtimeInvisibleTypeAnnotations() |
Returns the mapper for the RuntimeInvisibleTypeAnnotations attribute. |
static AttributeMapper |
runtimeVisibleAnnotations() |
Returns the mapper for the RuntimeVisibleAnnotations attribute. |
static AttributeMapper |
runtimeVisibleParameterAnnotations() |
Returns the mapper for the RuntimeVisibleParameterAnnotations attribute. |
static AttributeMapper |
runtimeVisibleTypeAnnotations() |
Returns the mapper for the RuntimeVisibleTypeAnnotations attribute. |
static AttributeMapper |
signature() |
Returns the mapper for the Signature attribute. |
static AttributeMapper |
sourceDebugExtension() |
Returns the mapper for the SourceDebugExtension attribute. |
static AttributeMapper |
sourceFile() |
Returns the mapper for the SourceFile attribute. |
static AttributeMapper |
sourceId() |
Returns the mapper for the SourceID attribute. |
static AttributeMapper |
stackMapTable() |
Returns the mapper for the StackMapTable attribute. |
static AttributeMapper |
synthetic() |
Returns the mapper for the Synthetic attribute. |
public static final String NAME_ANNOTATION_DEFAULT
public static final String NAME_BOOTSTRAP_METHODS
public static final String NAME_CHARACTER_RANGE_TABLE
public static final String NAME_CODE
public static final String NAME_COMPILATION_ID
public static final String NAME_CONSTANT_VALUE
public static final String NAME_DEPRECATED
public static final String NAME_ENCLOSING_METHOD
public static final String NAME_EXCEPTIONS
public static final String NAME_INNER_CLASSES
public static final String NAME_LINE_NUMBER_TABLE
public static final String NAME_LOCAL_VARIABLE_TABLE
public static final String NAME_LOCAL_VARIABLE_TYPE_TABLE
public static final String NAME_METHOD_PARAMETERS
public static final String NAME_MODULE
public static final String NAME_MODULE_HASHES
public static final String NAME_MODULE_MAIN_CLASS
public static final String NAME_MODULE_PACKAGES
public static final String NAME_MODULE_RESOLUTION
public static final String NAME_MODULE_TARGET
public static final String NAME_NEST_HOST
public static final String NAME_NEST_MEMBERS
public static final String NAME_PERMITTED_SUBCLASSES
public static final String NAME_RECORD
public static final String NAME_RUNTIME_INVISIBLE_ANNOTATIONS
public static final String NAME_RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS
public static final String NAME_RUNTIME_INVISIBLE_TYPE_ANNOTATIONS
public static final String NAME_RUNTIME_VISIBLE_ANNOTATIONS
public static final String NAME_RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS
public static final String NAME_RUNTIME_VISIBLE_TYPE_ANNOTATIONS
public static final String NAME_SIGNATURE
public static final String NAME_SOURCE_DEBUG_EXTENSION
public static final String NAME_SOURCE_FILE
public static final String NAME_SOURCE_ID
public static final String NAME_STACK_MAP_TABLE
public static final String NAME_SYNTHETIC
public static AttributeMapper<AnnotationDefaultAttribute> annotationDefault()
AnnotationDefault attribute.AnnotationDefault attributepublic static AttributeMapper<BootstrapMethodsAttribute> bootstrapMethods()
BootstrapMethods attribute.BootstrapMethods attributepublic static AttributeMapper<CharacterRangeTableAttribute> characterRangeTable()
CharacterRangeTable attribute. This is a JDK-specific attribute. The mapper permits multiple instances in a Code attribute, but this attribute should be only emitted once. This has a data dependency on labels.CharacterRangeTable attributepublic static AttributeMapper<CodeAttribute> code()
Code attribute.Code attributepublic static AttributeMapper<CompilationIDAttribute> compilationId()
CompilationID attribute. This is a JDK-specific attribute.CompilationID attributepublic static AttributeMapper<ConstantValueAttribute> constantValue()
ConstantValue attribute.ConstantValue attributepublic static AttributeMapper<DeprecatedAttribute> deprecated()
Deprecated attribute. The mapper permits multiple instances in a given location. This has no data dependency.Deprecated attributepublic static AttributeMapper<EnclosingMethodAttribute> enclosingMethod()
EnclosingMethod attribute.EnclosingMethod attributepublic static AttributeMapper<ExceptionsAttribute> exceptions()
Exceptions attribute.Exceptions attributepublic static AttributeMapper<InnerClassesAttribute> innerClasses()
InnerClasses attribute.InnerClasses attributepublic static AttributeMapper<LineNumberTableAttribute> lineNumberTable()
LineNumberTable attribute. The mapper permits multiple instances in a Code attribute. This has a data dependency on labels.LineNumberTable attributepublic static AttributeMapper<LocalVariableTableAttribute> localVariableTable()
LocalVariableTable attribute. The mapper permits multiple instances in a Code attribute. This has a data dependency on labels.LocalVariableTable attributepublic static AttributeMapper<LocalVariableTypeTableAttribute> localVariableTypeTable()
LocalVariableTypeTable attribute. The mapper permits multiple instances in a given location. This has a data dependency on labels.LocalVariableTypeTable attributepublic static AttributeMapper<MethodParametersAttribute> methodParameters()
MethodParameters attribute.MethodParameters attributepublic static AttributeMapper<ModuleAttribute> module()
Module attribute.Module attributepublic static AttributeMapper<ModuleHashesAttribute> moduleHashes()
ModuleHashes attribute. This is a JDK-specific attribute.ModuleHashes attributepublic static AttributeMapper<ModuleMainClassAttribute> moduleMainClass()
ModuleMainClass attribute.ModuleMainClass attributepublic static AttributeMapper<ModulePackagesAttribute> modulePackages()
ModulePackages attribute.ModulePackages attributepublic static AttributeMapper<ModuleResolutionAttribute> moduleResolution()
ModuleResolution attribute. This is a JDK-specific attribute. This has no data dependency.ModuleResolution attributepublic static AttributeMapper<ModuleTargetAttribute> moduleTarget()
ModuleTarget attribute. This is a JDK-specific attribute.ModuleTarget attributepublic static AttributeMapper<NestHostAttribute> nestHost()
NestHost attribute.NestHost attributepublic static AttributeMapper<NestMembersAttribute> nestMembers()
NestMembers attribute.NestMembers attributepublic static AttributeMapper<PermittedSubclassesAttribute> permittedSubclasses()
PermittedSubclasses attribute.PermittedSubclasses attributepublic static AttributeMapper<RecordAttribute> record()
Record attribute.Record attributepublic static AttributeMapper<RuntimeInvisibleAnnotationsAttribute> runtimeInvisibleAnnotations()
RuntimeInvisibleAnnotations attribute.RuntimeInvisibleAnnotations attributepublic static AttributeMapper<RuntimeInvisibleParameterAnnotationsAttribute> runtimeInvisibleParameterAnnotations()
RuntimeInvisibleParameterAnnotations attribute.RuntimeInvisibleParameterAnnotations attributepublic static AttributeMapper<RuntimeInvisibleTypeAnnotationsAttribute> runtimeInvisibleTypeAnnotations()
RuntimeInvisibleTypeAnnotations attribute. This has a data dependency on arbitrary indices in the class file format.RuntimeInvisibleTypeAnnotations attributepublic static AttributeMapper<RuntimeVisibleAnnotationsAttribute> runtimeVisibleAnnotations()
RuntimeVisibleAnnotations attribute.RuntimeVisibleAnnotations attributepublic static AttributeMapper<RuntimeVisibleParameterAnnotationsAttribute> runtimeVisibleParameterAnnotations()
RuntimeVisibleParameterAnnotations attribute.RuntimeVisibleParameterAnnotations attributepublic static AttributeMapper<RuntimeVisibleTypeAnnotationsAttribute> runtimeVisibleTypeAnnotations()
RuntimeVisibleTypeAnnotations attribute. This has a data dependency on arbitrary indices in the class file format.RuntimeVisibleTypeAnnotations attributepublic static AttributeMapper<SignatureAttribute> signature()
Signature attribute.Signature attributepublic static AttributeMapper<SourceDebugExtensionAttribute> sourceDebugExtension()
SourceDebugExtension attribute. This has no data dependency.SourceDebugExtension attributepublic static AttributeMapper<SourceFileAttribute> sourceFile()
SourceFile attribute.SourceFile attributepublic static AttributeMapper<SourceIDAttribute> sourceId()
SourceID attribute. This is a JDK-specific attribute.SourceID attributepublic static AttributeMapper<StackMapTableAttribute> stackMapTable()
StackMapTable attribute. This has a data dependency on labels.StackMapTable attributepublic static AttributeMapper<SyntheticAttribute> synthetic()
Synthetic attribute. The mapper permits multiple instances in a given location. This has no data dependency.Synthetic attribute
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/classfile/Attributes.html