Class Attributes
java.lang.Object
java.lang.classfile.Attributes
Attribute mappers for predefined (JVMS 4.7) and JDK-specific
nonstandard attributes.
Unless otherwise specified, each mapper returned by methods in this class:
- is predefined in the JVMS instead of JDK-specific;
- does not permit multiple attribute instances in the same structure;
- the attribute has a data dependency on the constant pool.
- Since:
- 24
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
AnnotationDefaultstatic final String
BootstrapMethodsstatic final String
CharacterRangeTablestatic final String
Codestatic final String
CompilationIDstatic final String
ConstantValuestatic final String
Deprecatedstatic final String
EnclosingMethodstatic final String
Exceptionsstatic final String
InnerClassesstatic final String
LineNumberTablestatic final String
LocalVariableTablestatic final String
LocalVariableTypeTablestatic final String
MethodParametersstatic final String
Modulestatic final String
ModuleHashesstatic final String
ModuleMainClassstatic final String
ModulePackagesstatic final String
ModuleResolutionstatic final String
ModuleTargetstatic final String
NestHoststatic final String
NestMembersstatic final String
PermittedSubclassesstatic final String
Recordstatic final String
RuntimeInvisibleAnnotationsstatic final String
RuntimeInvisibleParameterAnnotationsstatic final String
RuntimeInvisibleTypeAnnotationsstatic final String
RuntimeVisibleAnnotationsstatic final String
RuntimeVisibleParameterAnnotationsstatic final String
RuntimeVisibleTypeAnnotationsstatic final String
Signaturestatic final String
SourceDebugExtensionstatic final String
SourceFilestatic final String
SourceIDstatic final String
StackMapTablestatic final String
Synthetic -
Method Summary
Modifier and TypeMethodDescriptionReturns the mapper for theAnnotationDefault
attribute.Returns the mapper for theBootstrapMethods
attribute.Returns the mapper for theCharacterRangeTable
attribute.static AttributeMapper
<CodeAttribute> code()
Returns the mapper for theCode
attribute.Returns the mapper for theCompilationID
attribute.Returns the mapper for theConstantValue
attribute.static AttributeMapper
<DeprecatedAttribute> Returns the mapper for theDeprecated
attribute.Returns the mapper for theEnclosingMethod
attribute.static AttributeMapper
<ExceptionsAttribute> Returns the mapper for theExceptions
attribute.static AttributeMapper
<InnerClassesAttribute> Returns the mapper for theInnerClasses
attribute.Returns the mapper for theLineNumberTable
attribute.Returns the mapper for theLocalVariableTable
attribute.Returns the mapper for theLocalVariableTypeTable
attribute.Returns the mapper for theMethodParameters
attribute.static AttributeMapper
<ModuleAttribute> module()
Returns the mapper for theModule
attribute.static AttributeMapper
<ModuleHashesAttribute> Returns the mapper for theModuleHashes
attribute.Returns the mapper for theModuleMainClass
attribute.Returns the mapper for theModulePackages
attribute.Returns the mapper for theModuleResolution
attribute.static AttributeMapper
<ModuleTargetAttribute> Returns the mapper for theModuleTarget
attribute.static AttributeMapper
<NestHostAttribute> nestHost()
Returns the mapper for theNestHost
attribute.static AttributeMapper
<NestMembersAttribute> Returns the mapper for theNestMembers
attribute.Returns the mapper for thePermittedSubclasses
attribute.static AttributeMapper
<RecordAttribute> record()
Returns the mapper for theRecord
attribute.Returns the mapper for theRuntimeInvisibleAnnotations
attribute.Returns the mapper for theRuntimeInvisibleParameterAnnotations
attribute.Returns the mapper for theRuntimeInvisibleTypeAnnotations
attribute.Returns the mapper for theRuntimeVisibleAnnotations
attribute.Returns the mapper for theRuntimeVisibleParameterAnnotations
attribute.Returns the mapper for theRuntimeVisibleTypeAnnotations
attribute.static AttributeMapper
<SignatureAttribute> Returns the mapper for theSignature
attribute.Returns the mapper for theSourceDebugExtension
attribute.static AttributeMapper
<SourceFileAttribute> Returns the mapper for theSourceFile
attribute.static AttributeMapper
<SourceIDAttribute> sourceId()
Returns the mapper for theSourceID
attribute.Returns the mapper for theStackMapTable
attribute.static AttributeMapper
<SyntheticAttribute> Returns the mapper for theSynthetic
attribute.
-
Field Details
-
NAME_ANNOTATION_DEFAULT
-
NAME_BOOTSTRAP_METHODS
-
NAME_CHARACTER_RANGE_TABLE
-
NAME_CODE
-
NAME_COMPILATION_ID
-
NAME_CONSTANT_VALUE
-
NAME_DEPRECATED
-
NAME_ENCLOSING_METHOD
-
NAME_EXCEPTIONS
-
NAME_INNER_CLASSES
-
NAME_LINE_NUMBER_TABLE
-
NAME_LOCAL_VARIABLE_TABLE
-
NAME_LOCAL_VARIABLE_TYPE_TABLE
-
NAME_METHOD_PARAMETERS
-
NAME_MODULE
-
NAME_MODULE_HASHES
-
NAME_MODULE_MAIN_CLASS
-
NAME_MODULE_PACKAGES
-
NAME_MODULE_RESOLUTION
-
NAME_MODULE_TARGET
-
NAME_NEST_HOST
-
NAME_NEST_MEMBERS
-
NAME_PERMITTED_SUBCLASSES
-
NAME_RECORD
-
NAME_RUNTIME_INVISIBLE_ANNOTATIONS
-
NAME_RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS
RuntimeInvisibleParameterAnnotations- See Also:
-
NAME_RUNTIME_INVISIBLE_TYPE_ANNOTATIONS
RuntimeInvisibleTypeAnnotations- See Also:
-
NAME_RUNTIME_VISIBLE_ANNOTATIONS
-
NAME_RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS
RuntimeVisibleParameterAnnotations- See Also:
-
NAME_RUNTIME_VISIBLE_TYPE_ANNOTATIONS
RuntimeVisibleTypeAnnotations- See Also:
-
NAME_SIGNATURE
-
NAME_SOURCE_DEBUG_EXTENSION
-
NAME_SOURCE_FILE
-
NAME_SOURCE_ID
-
NAME_STACK_MAP_TABLE
-
NAME_SYNTHETIC
-
-
Method Details
-
annotationDefault
Returns the mapper for theAnnotationDefault
attribute.- Returns:
- the mapper for the
AnnotationDefault
attribute
-
bootstrapMethods
Returns the mapper for theBootstrapMethods
attribute.- Returns:
- the mapper for the
BootstrapMethods
attribute
-
characterRangeTable
Returns the mapper for theCharacterRangeTable
attribute. This is a JDK-specific attribute. The mapper permits multiple instances in aCode
attribute, but this attribute should be only emitted once. This has a data dependency on labels.- Returns:
- the mapper for the
CharacterRangeTable
attribute
-
code
Returns the mapper for theCode
attribute.- Returns:
- the mapper for the
Code
attribute
-
compilationId
Returns the mapper for theCompilationID
attribute. This is a JDK-specific attribute.- Returns:
- the mapper for the
CompilationID
attribute
-
constantValue
Returns the mapper for theConstantValue
attribute.- Returns:
- the mapper for the
ConstantValue
attribute
-
deprecated
Returns the mapper for theDeprecated
attribute. The mapper permits multiple instances in a given location. This has no data dependency.- Returns:
- the mapper for the
Deprecated
attribute
-
enclosingMethod
Returns the mapper for theEnclosingMethod
attribute.- Returns:
- the mapper for the
EnclosingMethod
attribute
-
exceptions
Returns the mapper for theExceptions
attribute.- Returns:
- the mapper for the
Exceptions
attribute
-
innerClasses
Returns the mapper for theInnerClasses
attribute.- Returns:
- the mapper for the
InnerClasses
attribute
-
lineNumberTable
Returns the mapper for theLineNumberTable
attribute. The mapper permits multiple instances in aCode
attribute. This has a data dependency on labels.- Returns:
- the mapper for the
LineNumberTable
attribute
-
localVariableTable
Returns the mapper for theLocalVariableTable
attribute. The mapper permits multiple instances in aCode
attribute. This has a data dependency on labels.- Returns:
- the mapper for the
LocalVariableTable
attribute
-
localVariableTypeTable
Returns the mapper for theLocalVariableTypeTable
attribute. The mapper permits multiple instances in a given location. This has a data dependency on labels.- Returns:
- the mapper for the
LocalVariableTypeTable
attribute
-
methodParameters
Returns the mapper for theMethodParameters
attribute.- Returns:
- the mapper for the
MethodParameters
attribute
-
module
Returns the mapper for theModule
attribute.- Returns:
- the mapper for the
Module
attribute
-
moduleHashes
Returns the mapper for theModuleHashes
attribute. This is a JDK-specific attribute.- Returns:
- the mapper for the
ModuleHashes
attribute
-
moduleMainClass
Returns the mapper for theModuleMainClass
attribute.- Returns:
- the mapper for the
ModuleMainClass
attribute
-
modulePackages
Returns the mapper for theModulePackages
attribute.- Returns:
- the mapper for the
ModulePackages
attribute
-
moduleResolution
Returns the mapper for theModuleResolution
attribute. This is a JDK-specific attribute. This has no data dependency.- Returns:
- the mapper for the
ModuleResolution
attribute
-
moduleTarget
Returns the mapper for theModuleTarget
attribute. This is a JDK-specific attribute.- Returns:
- the mapper for the
ModuleTarget
attribute
-
nestHost
Returns the mapper for theNestHost
attribute.- Returns:
- the mapper for the
NestHost
attribute
-
nestMembers
Returns the mapper for theNestMembers
attribute.- Returns:
- the mapper for the
NestMembers
attribute
-
permittedSubclasses
Returns the mapper for thePermittedSubclasses
attribute.- Returns:
- the mapper for the
PermittedSubclasses
attribute
-
record
Returns the mapper for theRecord
attribute.- Returns:
- the mapper for the
Record
attribute
-
runtimeInvisibleAnnotations
Returns the mapper for theRuntimeInvisibleAnnotations
attribute.- Returns:
- the mapper for the
RuntimeInvisibleAnnotations
attribute
-
runtimeInvisibleParameterAnnotations
public static AttributeMapper<RuntimeInvisibleParameterAnnotationsAttribute> runtimeInvisibleParameterAnnotations()Returns the mapper for theRuntimeInvisibleParameterAnnotations
attribute.- Returns:
- the mapper for the
RuntimeInvisibleParameterAnnotations
attribute
-
runtimeInvisibleTypeAnnotations
public static AttributeMapper<RuntimeInvisibleTypeAnnotationsAttribute> runtimeInvisibleTypeAnnotations()Returns the mapper for theRuntimeInvisibleTypeAnnotations
attribute. This has a data dependency on arbitrary indices in theclass
file format.- Returns:
- the mapper for the
RuntimeInvisibleTypeAnnotations
attribute
-
runtimeVisibleAnnotations
Returns the mapper for theRuntimeVisibleAnnotations
attribute.- Returns:
- the mapper for the
RuntimeVisibleAnnotations
attribute
-
runtimeVisibleParameterAnnotations
public static AttributeMapper<RuntimeVisibleParameterAnnotationsAttribute> runtimeVisibleParameterAnnotations()Returns the mapper for theRuntimeVisibleParameterAnnotations
attribute.- Returns:
- the mapper for the
RuntimeVisibleParameterAnnotations
attribute
-
runtimeVisibleTypeAnnotations
public static AttributeMapper<RuntimeVisibleTypeAnnotationsAttribute> runtimeVisibleTypeAnnotations()Returns the mapper for theRuntimeVisibleTypeAnnotations
attribute. This has a data dependency on arbitrary indices in theclass
file format.- Returns:
- the mapper for the
RuntimeVisibleTypeAnnotations
attribute
-
signature
Returns the mapper for theSignature
attribute.- Returns:
- the mapper for the
Signature
attribute
-
sourceDebugExtension
Returns the mapper for theSourceDebugExtension
attribute. This has no data dependency.- Returns:
- the mapper for the
SourceDebugExtension
attribute
-
sourceFile
Returns the mapper for theSourceFile
attribute.- Returns:
- the mapper for the
SourceFile
attribute
-
sourceId
Returns the mapper for theSourceID
attribute. This is a JDK-specific attribute.- Returns:
- the mapper for the
SourceID
attribute
-
stackMapTable
Returns the mapper for theStackMapTable
attribute. This has a data dependency on labels.- Returns:
- the mapper for the
StackMapTable
attribute
-
synthetic
Returns the mapper for theSynthetic
attribute. The mapper permits multiple instances in a given location. This has no data dependency.- Returns:
- the mapper for the
Synthetic
attribute
-