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 SummaryFieldsModifier and TypeFieldDescriptionstatic final StringAnnotationDefaultstatic final StringBootstrapMethodsstatic final StringCharacterRangeTablestatic final StringCodestatic final StringCompilationIDstatic final StringConstantValuestatic final StringDeprecatedstatic final StringEnclosingMethodstatic final StringExceptionsstatic final StringInnerClassesstatic final StringLineNumberTablestatic final StringLocalVariableTablestatic final StringLocalVariableTypeTablestatic final StringMethodParametersstatic final StringModulestatic final StringModuleHashesstatic final StringModuleMainClassstatic final StringModulePackagesstatic final StringModuleResolutionstatic final StringModuleTargetstatic final StringNestHoststatic final StringNestMembersstatic final StringPermittedSubclassesstatic final StringRecordstatic final StringRuntimeInvisibleAnnotationsstatic final StringRuntimeInvisibleParameterAnnotationsstatic final StringRuntimeInvisibleTypeAnnotationsstatic final StringRuntimeVisibleAnnotationsstatic final StringRuntimeVisibleParameterAnnotationsstatic final StringRuntimeVisibleTypeAnnotationsstatic final StringSignaturestatic final StringSourceDebugExtensionstatic final StringSourceFilestatic final StringSourceIDstatic final StringStackMapTablestatic final StringSynthetic
- 
Method SummaryModifier and TypeMethodDescriptionReturns the mapper for theAnnotationDefaultattribute.Returns the mapper for theBootstrapMethodsattribute.Returns the mapper for theCharacterRangeTableattribute.static AttributeMapper<CodeAttribute> code()Returns the mapper for theCodeattribute.Returns the mapper for theCompilationIDattribute.Returns the mapper for theConstantValueattribute.static AttributeMapper<DeprecatedAttribute> Returns the mapper for theDeprecatedattribute.Returns the mapper for theEnclosingMethodattribute.static AttributeMapper<ExceptionsAttribute> Returns the mapper for theExceptionsattribute.static AttributeMapper<InnerClassesAttribute> Returns the mapper for theInnerClassesattribute.Returns the mapper for theLineNumberTableattribute.Returns the mapper for theLocalVariableTableattribute.Returns the mapper for theLocalVariableTypeTableattribute.Returns the mapper for theMethodParametersattribute.static AttributeMapper<ModuleAttribute> module()Returns the mapper for theModuleattribute.static AttributeMapper<ModuleHashesAttribute> Returns the mapper for theModuleHashesattribute.Returns the mapper for theModuleMainClassattribute.Returns the mapper for theModulePackagesattribute.Returns the mapper for theModuleResolutionattribute.static AttributeMapper<ModuleTargetAttribute> Returns the mapper for theModuleTargetattribute.static AttributeMapper<NestHostAttribute> nestHost()Returns the mapper for theNestHostattribute.static AttributeMapper<NestMembersAttribute> Returns the mapper for theNestMembersattribute.Returns the mapper for thePermittedSubclassesattribute.static AttributeMapper<RecordAttribute> record()Returns the mapper for theRecordattribute.Returns the mapper for theRuntimeInvisibleAnnotationsattribute.Returns the mapper for theRuntimeInvisibleParameterAnnotationsattribute.Returns the mapper for theRuntimeInvisibleTypeAnnotationsattribute.Returns the mapper for theRuntimeVisibleAnnotationsattribute.Returns the mapper for theRuntimeVisibleParameterAnnotationsattribute.Returns the mapper for theRuntimeVisibleTypeAnnotationsattribute.static AttributeMapper<SignatureAttribute> Returns the mapper for theSignatureattribute.Returns the mapper for theSourceDebugExtensionattribute.static AttributeMapper<SourceFileAttribute> Returns the mapper for theSourceFileattribute.static AttributeMapper<SourceIDAttribute> sourceId()Returns the mapper for theSourceIDattribute.Returns the mapper for theStackMapTableattribute.static AttributeMapper<SyntheticAttribute> Returns the mapper for theSyntheticattribute.
- 
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_ANNOTATIONSRuntimeInvisibleParameterAnnotations- See Also:
 
- 
NAME_RUNTIME_INVISIBLE_TYPE_ANNOTATIONSRuntimeInvisibleTypeAnnotations- See Also:
 
- 
NAME_RUNTIME_VISIBLE_ANNOTATIONS
- 
NAME_RUNTIME_VISIBLE_PARAMETER_ANNOTATIONSRuntimeVisibleParameterAnnotations- See Also:
 
- 
NAME_RUNTIME_VISIBLE_TYPE_ANNOTATIONSRuntimeVisibleTypeAnnotations- See Also:
 
- 
NAME_SIGNATURE
- 
NAME_SOURCE_DEBUG_EXTENSION
- 
NAME_SOURCE_FILE
- 
NAME_SOURCE_ID
- 
NAME_STACK_MAP_TABLE
- 
NAME_SYNTHETIC
 
- 
- 
Method Details- 
annotationDefaultReturns the mapper for theAnnotationDefaultattribute.- Returns:
- the mapper for the AnnotationDefaultattribute
 
- 
bootstrapMethodsReturns the mapper for theBootstrapMethodsattribute.- Returns:
- the mapper for the BootstrapMethodsattribute
 
- 
characterRangeTableReturns the mapper for theCharacterRangeTableattribute. This is a JDK-specific attribute. The mapper permits multiple instances in aCodeattribute, but this attribute should be only emitted once. This has a data dependency on labels.- Returns:
- the mapper for the CharacterRangeTableattribute
 
- 
codeReturns the mapper for theCodeattribute.- Returns:
- the mapper for the Codeattribute
 
- 
compilationIdReturns the mapper for theCompilationIDattribute. This is a JDK-specific attribute.- Returns:
- the mapper for the CompilationIDattribute
 
- 
constantValueReturns the mapper for theConstantValueattribute.- Returns:
- the mapper for the ConstantValueattribute
 
- 
deprecatedReturns the mapper for theDeprecatedattribute. The mapper permits multiple instances in a given location. This has no data dependency.- Returns:
- the mapper for the Deprecatedattribute
 
- 
enclosingMethodReturns the mapper for theEnclosingMethodattribute.- Returns:
- the mapper for the EnclosingMethodattribute
 
- 
exceptionsReturns the mapper for theExceptionsattribute.- Returns:
- the mapper for the Exceptionsattribute
 
- 
innerClassesReturns the mapper for theInnerClassesattribute.- Returns:
- the mapper for the InnerClassesattribute
 
- 
lineNumberTableReturns the mapper for theLineNumberTableattribute. The mapper permits multiple instances in aCodeattribute. This has a data dependency on labels.- Returns:
- the mapper for the LineNumberTableattribute
 
- 
localVariableTableReturns the mapper for theLocalVariableTableattribute. The mapper permits multiple instances in aCodeattribute. This has a data dependency on labels.- Returns:
- the mapper for the LocalVariableTableattribute
 
- 
localVariableTypeTableReturns the mapper for theLocalVariableTypeTableattribute. The mapper permits multiple instances in a given location. This has a data dependency on labels.- Returns:
- the mapper for the LocalVariableTypeTableattribute
 
- 
methodParametersReturns the mapper for theMethodParametersattribute.- Returns:
- the mapper for the MethodParametersattribute
 
- 
moduleReturns the mapper for theModuleattribute.- Returns:
- the mapper for the Moduleattribute
 
- 
moduleHashesReturns the mapper for theModuleHashesattribute. This is a JDK-specific attribute.- Returns:
- the mapper for the ModuleHashesattribute
 
- 
moduleMainClassReturns the mapper for theModuleMainClassattribute.- Returns:
- the mapper for the ModuleMainClassattribute
 
- 
modulePackagesReturns the mapper for theModulePackagesattribute.- Returns:
- the mapper for the ModulePackagesattribute
 
- 
moduleResolutionReturns the mapper for theModuleResolutionattribute. This is a JDK-specific attribute. This has no data dependency.- Returns:
- the mapper for the ModuleResolutionattribute
 
- 
moduleTargetReturns the mapper for theModuleTargetattribute. This is a JDK-specific attribute.- Returns:
- the mapper for the ModuleTargetattribute
 
- 
nestHostReturns the mapper for theNestHostattribute.- Returns:
- the mapper for the NestHostattribute
 
- 
nestMembersReturns the mapper for theNestMembersattribute.- Returns:
- the mapper for the NestMembersattribute
 
- 
permittedSubclassesReturns the mapper for thePermittedSubclassesattribute.- Returns:
- the mapper for the PermittedSubclassesattribute
 
- 
recordReturns the mapper for theRecordattribute.- Returns:
- the mapper for the Recordattribute
 
- 
runtimeInvisibleAnnotationsReturns the mapper for theRuntimeInvisibleAnnotationsattribute.- Returns:
- the mapper for the RuntimeInvisibleAnnotationsattribute
 
- 
runtimeInvisibleParameterAnnotationspublic static AttributeMapper<RuntimeInvisibleParameterAnnotationsAttribute> runtimeInvisibleParameterAnnotations()Returns the mapper for theRuntimeInvisibleParameterAnnotationsattribute.- Returns:
- the mapper for the RuntimeInvisibleParameterAnnotationsattribute
 
- 
runtimeInvisibleTypeAnnotationspublic static AttributeMapper<RuntimeInvisibleTypeAnnotationsAttribute> runtimeInvisibleTypeAnnotations()Returns the mapper for theRuntimeInvisibleTypeAnnotationsattribute. This has a data dependency on arbitrary indices in theclassfile format.- Returns:
- the mapper for the RuntimeInvisibleTypeAnnotationsattribute
 
- 
runtimeVisibleAnnotationsReturns the mapper for theRuntimeVisibleAnnotationsattribute.- Returns:
- the mapper for the RuntimeVisibleAnnotationsattribute
 
- 
runtimeVisibleParameterAnnotationspublic static AttributeMapper<RuntimeVisibleParameterAnnotationsAttribute> runtimeVisibleParameterAnnotations()Returns the mapper for theRuntimeVisibleParameterAnnotationsattribute.- Returns:
- the mapper for the RuntimeVisibleParameterAnnotationsattribute
 
- 
runtimeVisibleTypeAnnotationspublic static AttributeMapper<RuntimeVisibleTypeAnnotationsAttribute> runtimeVisibleTypeAnnotations()Returns the mapper for theRuntimeVisibleTypeAnnotationsattribute. This has a data dependency on arbitrary indices in theclassfile format.- Returns:
- the mapper for the RuntimeVisibleTypeAnnotationsattribute
 
- 
signatureReturns the mapper for theSignatureattribute.- Returns:
- the mapper for the Signatureattribute
 
- 
sourceDebugExtensionReturns the mapper for theSourceDebugExtensionattribute. This has no data dependency.- Returns:
- the mapper for the SourceDebugExtensionattribute
 
- 
sourceFileReturns the mapper for theSourceFileattribute.- Returns:
- the mapper for the SourceFileattribute
 
- 
sourceIdReturns the mapper for theSourceIDattribute. This is a JDK-specific attribute.- Returns:
- the mapper for the SourceIDattribute
 
- 
stackMapTableReturns the mapper for theStackMapTableattribute. This has a data dependency on labels.- Returns:
- the mapper for the StackMapTableattribute
 
- 
syntheticReturns the mapper for theSyntheticattribute. The mapper permits multiple instances in a given location. This has no data dependency.- Returns:
- the mapper for the Syntheticattribute
 
 
-