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 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 Summary
Modifier 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_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 theAnnotationDefaultattribute.- Returns:
- the mapper for the
AnnotationDefaultattribute
-
bootstrapMethods
Returns the mapper for theBootstrapMethodsattribute.- Returns:
- the mapper for the
BootstrapMethodsattribute
-
characterRangeTable
Returns 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
-
code
Returns the mapper for theCodeattribute.- Returns:
- the mapper for the
Codeattribute
-
compilationId
Returns the mapper for theCompilationIDattribute. This is a JDK-specific attribute.- Returns:
- the mapper for the
CompilationIDattribute
-
constantValue
Returns the mapper for theConstantValueattribute.- Returns:
- the mapper for the
ConstantValueattribute
-
deprecated
Returns the mapper for theDeprecatedattribute. The mapper permits multiple instances in a given location. This has no data dependency.- Returns:
- the mapper for the
Deprecatedattribute
-
enclosingMethod
Returns the mapper for theEnclosingMethodattribute.- Returns:
- the mapper for the
EnclosingMethodattribute
-
exceptions
Returns the mapper for theExceptionsattribute.- Returns:
- the mapper for the
Exceptionsattribute
-
innerClasses
Returns the mapper for theInnerClassesattribute.- Returns:
- the mapper for the
InnerClassesattribute
-
lineNumberTable
Returns the mapper for theLineNumberTableattribute. The mapper permits multiple instances in aCodeattribute. This has a data dependency on labels.- Returns:
- the mapper for the
LineNumberTableattribute
-
localVariableTable
Returns the mapper for theLocalVariableTableattribute. The mapper permits multiple instances in aCodeattribute. This has a data dependency on labels.- Returns:
- the mapper for the
LocalVariableTableattribute
-
localVariableTypeTable
Returns 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
-
methodParameters
Returns the mapper for theMethodParametersattribute.- Returns:
- the mapper for the
MethodParametersattribute
-
module
Returns the mapper for theModuleattribute.- Returns:
- the mapper for the
Moduleattribute
-
moduleHashes
Returns the mapper for theModuleHashesattribute. This is a JDK-specific attribute.- Returns:
- the mapper for the
ModuleHashesattribute
-
moduleMainClass
Returns the mapper for theModuleMainClassattribute.- Returns:
- the mapper for the
ModuleMainClassattribute
-
modulePackages
Returns the mapper for theModulePackagesattribute.- Returns:
- the mapper for the
ModulePackagesattribute
-
moduleResolution
Returns the mapper for theModuleResolutionattribute. This is a JDK-specific attribute. This has no data dependency.- Returns:
- the mapper for the
ModuleResolutionattribute
-
moduleTarget
Returns the mapper for theModuleTargetattribute. This is a JDK-specific attribute.- Returns:
- the mapper for the
ModuleTargetattribute
-
nestHost
Returns the mapper for theNestHostattribute.- Returns:
- the mapper for the
NestHostattribute
-
nestMembers
Returns the mapper for theNestMembersattribute.- Returns:
- the mapper for the
NestMembersattribute
-
permittedSubclasses
Returns the mapper for thePermittedSubclassesattribute.- Returns:
- the mapper for the
PermittedSubclassesattribute
-
record
Returns the mapper for theRecordattribute.- Returns:
- the mapper for the
Recordattribute
-
runtimeInvisibleAnnotations
Returns the mapper for theRuntimeInvisibleAnnotationsattribute.- Returns:
- the mapper for the
RuntimeInvisibleAnnotationsattribute
-
runtimeInvisibleParameterAnnotations
public static AttributeMapper<RuntimeInvisibleParameterAnnotationsAttribute> runtimeInvisibleParameterAnnotations()Returns the mapper for theRuntimeInvisibleParameterAnnotationsattribute.- Returns:
- the mapper for the
RuntimeInvisibleParameterAnnotationsattribute
-
runtimeInvisibleTypeAnnotations
public 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
-
runtimeVisibleAnnotations
Returns the mapper for theRuntimeVisibleAnnotationsattribute.- Returns:
- the mapper for the
RuntimeVisibleAnnotationsattribute
-
runtimeVisibleParameterAnnotations
public static AttributeMapper<RuntimeVisibleParameterAnnotationsAttribute> runtimeVisibleParameterAnnotations()Returns the mapper for theRuntimeVisibleParameterAnnotationsattribute.- Returns:
- the mapper for the
RuntimeVisibleParameterAnnotationsattribute
-
runtimeVisibleTypeAnnotations
public 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
-
signature
Returns the mapper for theSignatureattribute.- Returns:
- the mapper for the
Signatureattribute
-
sourceDebugExtension
Returns the mapper for theSourceDebugExtensionattribute. This has no data dependency.- Returns:
- the mapper for the
SourceDebugExtensionattribute
-
sourceFile
Returns the mapper for theSourceFileattribute.- Returns:
- the mapper for the
SourceFileattribute
-
sourceId
Returns the mapper for theSourceIDattribute. This is a JDK-specific attribute.- Returns:
- the mapper for the
SourceIDattribute
-
stackMapTable
Returns the mapper for theStackMapTableattribute. This has a data dependency on labels.- Returns:
- the mapper for the
StackMapTableattribute
-
synthetic
Returns the mapper for theSyntheticattribute. The mapper permits multiple instances in a given location. This has no data dependency.- Returns:
- the mapper for the
Syntheticattribute
-