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
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 Attribute mapper for theAnnotationDefaultattribute.Returns Attribute mapper for theBootstrapMethodsattribute.Returns Attribute mapper for theCharacterRangeTableattribute.static AttributeMapper<CodeAttribute> code()Returns Attribute mapper for theCodeattribute.Returns Attribute mapper for theCompilationIDattribute.Returns Attribute mapper for theConstantValueattribute.static AttributeMapper<DeprecatedAttribute> Returns Attribute mapper for theDeprecatedattribute.Returns Attribute mapper for theEnclosingMethodattribute.static AttributeMapper<ExceptionsAttribute> Returns Attribute mapper for theExceptionsattribute.static AttributeMapper<InnerClassesAttribute> Returns Attribute mapper for theInnerClassesattribute.Returns Attribute mapper for theLineNumberTableattribute.Returns Attribute mapper for theLocalVariableTableattribute.Returns Attribute mapper for theLocalVariableTypeTableattribute.Returns Attribute mapper for theMethodParametersattribute.static AttributeMapper<ModuleAttribute> module()Returns Attribute mapper for theModuleattribute.static AttributeMapper<ModuleHashesAttribute> Returns Attribute mapper for theModuleHashesattribute.Returns Attribute mapper for theModuleMainClassattribute.Returns Attribute mapper for theModulePackagesattribute.Returns Attribute mapper for theModuleResolutionattribute.static AttributeMapper<ModuleTargetAttribute> Returns Attribute mapper for theModuleTargetattribute.static AttributeMapper<NestHostAttribute> nestHost()Returns Attribute mapper for theNestHostattribute.static AttributeMapper<NestMembersAttribute> Returns Attribute mapper for theNestMembersattribute.Returns Attribute mapper for thePermittedSubclassesattribute.static AttributeMapper<RecordAttribute> record()Returns Attribute mapper for theRecordattribute.Returns Attribute mapper for theRuntimeInvisibleAnnotationsattribute.Returns Attribute mapper for theRuntimeInvisibleParameterAnnotationsattribute.Returns Attribute mapper for theRuntimeInvisibleTypeAnnotationsattribute.Returns Attribute mapper for theRuntimeVisibleAnnotationsattribute.Returns Attribute mapper for theRuntimeVisibleParameterAnnotationsattribute.Returns Attribute mapper for theRuntimeVisibleTypeAnnotationsattribute.static AttributeMapper<SignatureAttribute> Returns Attribute mapper for theSignatureattribute.Returns Attribute mapper for theSourceDebugExtensionattribute.static AttributeMapper<SourceFileAttribute> Returns Attribute mapper for theSourceFileattribute.static AttributeMapper<SourceIDAttribute> sourceId()Returns Attribute mapper for theSourceIDattribute.Returns Attribute mapper for theStackMapTableattribute.static AttributeMapper<SyntheticAttribute> Returns Attribute 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 Attribute mapper for theAnnotationDefaultattribute.- Returns:
- Attribute mapper for the
AnnotationDefaultattribute
-
bootstrapMethods
Returns Attribute mapper for theBootstrapMethodsattribute.- Returns:
- Attribute mapper for the
BootstrapMethodsattribute
-
characterRangeTable
Returns Attribute mapper for theCharacterRangeTableattribute. The mapper permits multiple instances in a given location.- Returns:
- Attribute mapper for the
CharacterRangeTableattribute
-
code
Returns Attribute mapper for theCodeattribute.- Returns:
- Attribute mapper for the
Codeattribute
-
compilationId
Returns Attribute mapper for theCompilationIDattribute.- Returns:
- Attribute mapper for the
CompilationIDattribute
-
constantValue
Returns Attribute mapper for theConstantValueattribute.- Returns:
- Attribute mapper for the
ConstantValueattribute
-
deprecated
Returns Attribute mapper for theDeprecatedattribute. The mapper permits multiple instances in a given location.- Returns:
- Attribute mapper for the
Deprecatedattribute
-
enclosingMethod
Returns Attribute mapper for theEnclosingMethodattribute.- Returns:
- Attribute mapper for the
EnclosingMethodattribute
-
exceptions
Returns Attribute mapper for theExceptionsattribute.- Returns:
- Attribute mapper for the
Exceptionsattribute
-
innerClasses
Returns Attribute mapper for theInnerClassesattribute.- Returns:
- Attribute mapper for the
InnerClassesattribute
-
lineNumberTable
Returns Attribute mapper for theLineNumberTableattribute. The mapper permits multiple instances in a given location.- Returns:
- Attribute mapper for the
LineNumberTableattribute
-
localVariableTable
Returns Attribute mapper for theLocalVariableTableattribute. The mapper permits multiple instances in a given location.- Returns:
- Attribute mapper for the
LocalVariableTableattribute
-
localVariableTypeTable
Returns Attribute mapper for theLocalVariableTypeTableattribute. The mapper permits multiple instances in a given location.- Returns:
- Attribute mapper for the
LocalVariableTypeTableattribute
-
methodParameters
Returns Attribute mapper for theMethodParametersattribute.- Returns:
- Attribute mapper for the
MethodParametersattribute
-
module
Returns Attribute mapper for theModuleattribute.- Returns:
- Attribute mapper for the
Moduleattribute
-
moduleHashes
Returns Attribute mapper for theModuleHashesattribute.- Returns:
- Attribute mapper for the
ModuleHashesattribute
-
moduleMainClass
Returns Attribute mapper for theModuleMainClassattribute.- Returns:
- Attribute mapper for the
ModuleMainClassattribute
-
modulePackages
Returns Attribute mapper for theModulePackagesattribute.- Returns:
- Attribute mapper for the
ModulePackagesattribute
-
moduleResolution
Returns Attribute mapper for theModuleResolutionattribute.- Returns:
- Attribute mapper for the
ModuleResolutionattribute
-
moduleTarget
Returns Attribute mapper for theModuleTargetattribute.- Returns:
- Attribute mapper for the
ModuleTargetattribute
-
nestHost
Returns Attribute mapper for theNestHostattribute.- Returns:
- Attribute mapper for the
NestHostattribute
-
nestMembers
Returns Attribute mapper for theNestMembersattribute.- Returns:
- Attribute mapper for the
NestMembersattribute
-
permittedSubclasses
Returns Attribute mapper for thePermittedSubclassesattribute.- Returns:
- Attribute mapper for the
PermittedSubclassesattribute
-
record
Returns Attribute mapper for theRecordattribute.- Returns:
- Attribute mapper for the
Recordattribute
-
runtimeInvisibleAnnotations
Returns Attribute mapper for theRuntimeInvisibleAnnotationsattribute.- Returns:
- Attribute mapper for the
RuntimeInvisibleAnnotationsattribute
-
runtimeInvisibleParameterAnnotations
public static AttributeMapper<RuntimeInvisibleParameterAnnotationsAttribute> runtimeInvisibleParameterAnnotations()Returns Attribute mapper for theRuntimeInvisibleParameterAnnotationsattribute.- Returns:
- Attribute mapper for the
RuntimeInvisibleParameterAnnotationsattribute
-
runtimeInvisibleTypeAnnotations
public static AttributeMapper<RuntimeInvisibleTypeAnnotationsAttribute> runtimeInvisibleTypeAnnotations()Returns Attribute mapper for theRuntimeInvisibleTypeAnnotationsattribute.- Returns:
- Attribute mapper for the
RuntimeInvisibleTypeAnnotationsattribute
-
runtimeVisibleAnnotations
Returns Attribute mapper for theRuntimeVisibleAnnotationsattribute.- Returns:
- Attribute mapper for the
RuntimeVisibleAnnotationsattribute
-
runtimeVisibleParameterAnnotations
public static AttributeMapper<RuntimeVisibleParameterAnnotationsAttribute> runtimeVisibleParameterAnnotations()Returns Attribute mapper for theRuntimeVisibleParameterAnnotationsattribute.- Returns:
- Attribute mapper for the
RuntimeVisibleParameterAnnotationsattribute
-
runtimeVisibleTypeAnnotations
public static AttributeMapper<RuntimeVisibleTypeAnnotationsAttribute> runtimeVisibleTypeAnnotations()Returns Attribute mapper for theRuntimeVisibleTypeAnnotationsattribute.- Returns:
- Attribute mapper for the
RuntimeVisibleTypeAnnotationsattribute
-
signature
Returns Attribute mapper for theSignatureattribute.- Returns:
- Attribute mapper for the
Signatureattribute
-
sourceDebugExtension
Returns Attribute mapper for theSourceDebugExtensionattribute.- Returns:
- Attribute mapper for the
SourceDebugExtensionattribute
-
sourceFile
Returns Attribute mapper for theSourceFileattribute.- Returns:
- Attribute mapper for the
SourceFileattribute
-
sourceId
Returns Attribute mapper for theSourceIDattribute.- Returns:
- Attribute mapper for the
SourceIDattribute
-
stackMapTable
Returns Attribute mapper for theStackMapTableattribute.- Returns:
- Attribute mapper for the
StackMapTableattribute
-
synthetic
Returns Attribute mapper for theSyntheticattribute. The mapper permits multiple instances in a given location.- Returns:
- Attribute mapper for the
Syntheticattribute
-