Class Attributes
java.lang.Object
java.lang.classfile.Attributes
Attribute mappers for standard classfile attributes.
Unless otherwise specified, mappers returned by each method do not permit multiple attribute instances in a given location.
The most stable STATELESS
mappers are:
CP_REFS
stability are:
annotationDefault()
bootstrapMethods()
code()
compilationId()
constantValue()
enclosingMethod()
exceptions()
innerClasses()
methodParameters()
module()
moduleHashes()
moduleMainClass()
modulePackages()
moduleTarget()
nestHost()
nestMembers()
permittedSubclasses()
record()
runtimeInvisibleAnnotations()
runtimeInvisibleParameterAnnotations()
runtimeVisibleAnnotations()
runtimeVisibleParameterAnnotations()
signature()
sourceFile()
sourceId()
LABELS
stability are:
The UNSTABLE
mappers are:
- Since:
- 24
- See Also:
-
Field Summary
Modifier 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 Attribute mapper for theAnnotationDefault
attribute.Returns Attribute mapper for theBootstrapMethods
attribute.Returns Attribute mapper for theCharacterRangeTable
attribute.static AttributeMapper
<CodeAttribute> code()
Returns Attribute mapper for theCode
attribute.Returns Attribute mapper for theCompilationID
attribute.Returns Attribute mapper for theConstantValue
attribute.static AttributeMapper
<DeprecatedAttribute> Returns Attribute mapper for theDeprecated
attribute.Returns Attribute mapper for theEnclosingMethod
attribute.static AttributeMapper
<ExceptionsAttribute> Returns Attribute mapper for theExceptions
attribute.static AttributeMapper
<InnerClassesAttribute> Returns Attribute mapper for theInnerClasses
attribute.Returns Attribute mapper for theLineNumberTable
attribute.Returns Attribute mapper for theLocalVariableTable
attribute.Returns Attribute mapper for theLocalVariableTypeTable
attribute.Returns Attribute mapper for theMethodParameters
attribute.static AttributeMapper
<ModuleAttribute> module()
Returns Attribute mapper for theModule
attribute.static AttributeMapper
<ModuleHashesAttribute> Returns Attribute mapper for theModuleHashes
attribute.Returns Attribute mapper for theModuleMainClass
attribute.Returns Attribute mapper for theModulePackages
attribute.Returns Attribute mapper for theModuleResolution
attribute.static AttributeMapper
<ModuleTargetAttribute> Returns Attribute mapper for theModuleTarget
attribute.static AttributeMapper
<NestHostAttribute> nestHost()
Returns Attribute mapper for theNestHost
attribute.static AttributeMapper
<NestMembersAttribute> Returns Attribute mapper for theNestMembers
attribute.Returns Attribute mapper for thePermittedSubclasses
attribute.static AttributeMapper
<RecordAttribute> record()
Returns Attribute mapper for theRecord
attribute.Returns Attribute mapper for theRuntimeInvisibleAnnotations
attribute.Returns Attribute mapper for theRuntimeInvisibleParameterAnnotations
attribute.Returns Attribute mapper for theRuntimeInvisibleTypeAnnotations
attribute.Returns Attribute mapper for theRuntimeVisibleAnnotations
attribute.Returns Attribute mapper for theRuntimeVisibleParameterAnnotations
attribute.Returns Attribute mapper for theRuntimeVisibleTypeAnnotations
attribute.static AttributeMapper
<SignatureAttribute> Returns Attribute mapper for theSignature
attribute.Returns Attribute mapper for theSourceDebugExtension
attribute.static AttributeMapper
<SourceFileAttribute> Returns Attribute mapper for theSourceFile
attribute.static AttributeMapper
<SourceIDAttribute> sourceId()
Returns Attribute mapper for theSourceID
attribute.Returns Attribute mapper for theStackMapTable
attribute.static AttributeMapper
<SyntheticAttribute> Returns Attribute 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 Attribute mapper for theAnnotationDefault
attribute.- Returns:
- Attribute mapper for the
AnnotationDefault
attribute
-
bootstrapMethods
Returns Attribute mapper for theBootstrapMethods
attribute.- Returns:
- Attribute mapper for the
BootstrapMethods
attribute
-
characterRangeTable
Returns Attribute mapper for theCharacterRangeTable
attribute. The mapper permits multiple instances in a given location.- Returns:
- Attribute mapper for the
CharacterRangeTable
attribute
-
code
Returns Attribute mapper for theCode
attribute.- Returns:
- Attribute mapper for the
Code
attribute
-
compilationId
Returns Attribute mapper for theCompilationID
attribute.- Returns:
- Attribute mapper for the
CompilationID
attribute
-
constantValue
Returns Attribute mapper for theConstantValue
attribute.- Returns:
- Attribute mapper for the
ConstantValue
attribute
-
deprecated
Returns Attribute mapper for theDeprecated
attribute. The mapper permits multiple instances in a given location.- Returns:
- Attribute mapper for the
Deprecated
attribute
-
enclosingMethod
Returns Attribute mapper for theEnclosingMethod
attribute.- Returns:
- Attribute mapper for the
EnclosingMethod
attribute
-
exceptions
Returns Attribute mapper for theExceptions
attribute.- Returns:
- Attribute mapper for the
Exceptions
attribute
-
innerClasses
Returns Attribute mapper for theInnerClasses
attribute.- Returns:
- Attribute mapper for the
InnerClasses
attribute
-
lineNumberTable
Returns Attribute mapper for theLineNumberTable
attribute. The mapper permits multiple instances in a given location.- Returns:
- Attribute mapper for the
LineNumberTable
attribute
-
localVariableTable
Returns Attribute mapper for theLocalVariableTable
attribute. The mapper permits multiple instances in a given location.- Returns:
- Attribute mapper for the
LocalVariableTable
attribute
-
localVariableTypeTable
Returns Attribute mapper for theLocalVariableTypeTable
attribute. The mapper permits multiple instances in a given location.- Returns:
- Attribute mapper for the
LocalVariableTypeTable
attribute
-
methodParameters
Returns Attribute mapper for theMethodParameters
attribute.- Returns:
- Attribute mapper for the
MethodParameters
attribute
-
module
Returns Attribute mapper for theModule
attribute.- Returns:
- Attribute mapper for the
Module
attribute
-
moduleHashes
Returns Attribute mapper for theModuleHashes
attribute.- Returns:
- Attribute mapper for the
ModuleHashes
attribute
-
moduleMainClass
Returns Attribute mapper for theModuleMainClass
attribute.- Returns:
- Attribute mapper for the
ModuleMainClass
attribute
-
modulePackages
Returns Attribute mapper for theModulePackages
attribute.- Returns:
- Attribute mapper for the
ModulePackages
attribute
-
moduleResolution
Returns Attribute mapper for theModuleResolution
attribute.- Returns:
- Attribute mapper for the
ModuleResolution
attribute
-
moduleTarget
Returns Attribute mapper for theModuleTarget
attribute.- Returns:
- Attribute mapper for the
ModuleTarget
attribute
-
nestHost
Returns Attribute mapper for theNestHost
attribute.- Returns:
- Attribute mapper for the
NestHost
attribute
-
nestMembers
Returns Attribute mapper for theNestMembers
attribute.- Returns:
- Attribute mapper for the
NestMembers
attribute
-
permittedSubclasses
Returns Attribute mapper for thePermittedSubclasses
attribute.- Returns:
- Attribute mapper for the
PermittedSubclasses
attribute
-
record
Returns Attribute mapper for theRecord
attribute.- Returns:
- Attribute mapper for the
Record
attribute
-
runtimeInvisibleAnnotations
Returns Attribute mapper for theRuntimeInvisibleAnnotations
attribute.- Returns:
- Attribute mapper for the
RuntimeInvisibleAnnotations
attribute
-
runtimeInvisibleParameterAnnotations
public static AttributeMapper<RuntimeInvisibleParameterAnnotationsAttribute> runtimeInvisibleParameterAnnotations()Returns Attribute mapper for theRuntimeInvisibleParameterAnnotations
attribute.- Returns:
- Attribute mapper for the
RuntimeInvisibleParameterAnnotations
attribute
-
runtimeInvisibleTypeAnnotations
public static AttributeMapper<RuntimeInvisibleTypeAnnotationsAttribute> runtimeInvisibleTypeAnnotations()Returns Attribute mapper for theRuntimeInvisibleTypeAnnotations
attribute.- Returns:
- Attribute mapper for the
RuntimeInvisibleTypeAnnotations
attribute
-
runtimeVisibleAnnotations
Returns Attribute mapper for theRuntimeVisibleAnnotations
attribute.- Returns:
- Attribute mapper for the
RuntimeVisibleAnnotations
attribute
-
runtimeVisibleParameterAnnotations
public static AttributeMapper<RuntimeVisibleParameterAnnotationsAttribute> runtimeVisibleParameterAnnotations()Returns Attribute mapper for theRuntimeVisibleParameterAnnotations
attribute.- Returns:
- Attribute mapper for the
RuntimeVisibleParameterAnnotations
attribute
-
runtimeVisibleTypeAnnotations
public static AttributeMapper<RuntimeVisibleTypeAnnotationsAttribute> runtimeVisibleTypeAnnotations()Returns Attribute mapper for theRuntimeVisibleTypeAnnotations
attribute.- Returns:
- Attribute mapper for the
RuntimeVisibleTypeAnnotations
attribute
-
signature
Returns Attribute mapper for theSignature
attribute.- Returns:
- Attribute mapper for the
Signature
attribute
-
sourceDebugExtension
Returns Attribute mapper for theSourceDebugExtension
attribute.- Returns:
- Attribute mapper for the
SourceDebugExtension
attribute
-
sourceFile
Returns Attribute mapper for theSourceFile
attribute.- Returns:
- Attribute mapper for the
SourceFile
attribute
-
sourceId
Returns Attribute mapper for theSourceID
attribute.- Returns:
- Attribute mapper for the
SourceID
attribute
-
stackMapTable
Returns Attribute mapper for theStackMapTable
attribute.- Returns:
- Attribute mapper for the
StackMapTable
attribute
-
synthetic
Returns Attribute mapper for theSynthetic
attribute. The mapper permits multiple instances in a given location.- Returns:
- Attribute mapper for the
Synthetic
attribute
-