Class Attributes
java.lang.Object
java.lang.classfile.Attributes
Attributes
is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Attribute mappers for standard classfile attributes.
- Since:
- 22
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AttributeMapperPREVIEW
<AnnotationDefaultAttributePREVIEW> Attribute mapper for theAnnotationDefault
attributestatic final AttributeMapperPREVIEW
<BootstrapMethodsAttributePREVIEW> Attribute mapper for theBootstrapMethods
attributestatic final AttributeMapperPREVIEW
<CharacterRangeTableAttributePREVIEW> Attribute mapper for theCharacterRangeTable
attributestatic final AttributeMapperPREVIEW
<CodeAttributePREVIEW> Attribute mapper for theCode
attributestatic final AttributeMapperPREVIEW
<CompilationIDAttributePREVIEW> Attribute mapper for theCompilationID
attributestatic final AttributeMapperPREVIEW
<ConstantValueAttributePREVIEW> Attribute mapper for theConstantValue
attributestatic final AttributeMapperPREVIEW
<DeprecatedAttributePREVIEW> Attribute mapper for theDeprecated
attributestatic final AttributeMapperPREVIEW
<EnclosingMethodAttributePREVIEW> Attribute mapper for theEnclosingMethod
attributestatic final AttributeMapperPREVIEW
<ExceptionsAttributePREVIEW> Attribute mapper for theExceptions
attributestatic final AttributeMapperPREVIEW
<InnerClassesAttributePREVIEW> Attribute mapper for theInnerClasses
attributestatic final AttributeMapperPREVIEW
<LineNumberTableAttributePREVIEW> Attribute mapper for theLineNumberTable
attributestatic final AttributeMapperPREVIEW
<LocalVariableTableAttributePREVIEW> Attribute mapper for theLocalVariableTable
attributestatic final AttributeMapperPREVIEW
<LocalVariableTypeTableAttributePREVIEW> Attribute mapper for theLocalVariableTypeTable
attributestatic final AttributeMapperPREVIEW
<MethodParametersAttributePREVIEW> Attribute mapper for theMethodParameters
attributestatic final AttributeMapperPREVIEW
<ModuleAttributePREVIEW> Attribute mapper for theModule
attributestatic final AttributeMapperPREVIEW
<ModuleHashesAttributePREVIEW> Attribute mapper for theModuleHashes
attributestatic final AttributeMapperPREVIEW
<ModuleMainClassAttributePREVIEW> Attribute mapper for theModuleMainClass
attributestatic final AttributeMapperPREVIEW
<ModulePackagesAttributePREVIEW> Attribute mapper for theModulePackages
attributestatic final AttributeMapperPREVIEW
<ModuleResolutionAttributePREVIEW> Attribute mapper for theModuleResolution
attributestatic final AttributeMapperPREVIEW
<ModuleTargetAttributePREVIEW> Attribute mapper for theModuleTarget
attributestatic 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
Syntheticstatic final AttributeMapperPREVIEW
<NestHostAttributePREVIEW> Attribute mapper for theNestHost
attributestatic final AttributeMapperPREVIEW
<NestMembersAttributePREVIEW> Attribute mapper for theNestMembers
attributestatic final AttributeMapperPREVIEW
<PermittedSubclassesAttributePREVIEW> Attribute mapper for thePermittedSubclasses
attributestatic final Set
<AttributeMapperPREVIEW<?>> All standard attribute mappers.static final AttributeMapperPREVIEW
<RecordAttributePREVIEW> Attribute mapper for theRecord
attributeAttribute mapper for theRuntimeInvisibleAnnotations
attributeAttribute mapper for theRuntimeInvisibleParameterAnnotations
attributeAttribute mapper for theRuntimeInvisibleTypeAnnotations
attributeAttribute mapper for theRuntimeVisibleAnnotations
attributeAttribute mapper for theRuntimeVisibleParameterAnnotations
attributeAttribute mapper for theRuntimeVisibleTypeAnnotations
attributestatic final AttributeMapperPREVIEW
<SignatureAttributePREVIEW> Attribute mapper for theSignature
attributestatic final AttributeMapperPREVIEW
<SourceDebugExtensionAttributePREVIEW> Attribute mapper for theSourceDebugExtension
attributestatic final AttributeMapperPREVIEW
<SourceFileAttributePREVIEW> Attribute mapper for theSourceFile
attributestatic final AttributeMapperPREVIEW
<SourceIDAttributePREVIEW> Attribute mapper for theSourceID
attributestatic final AttributeMapperPREVIEW
<StackMapTableAttributePREVIEW> Attribute mapper for theStackMapTable
attributestatic final AttributeMapperPREVIEW
<SyntheticAttributePREVIEW> Attribute mapper for theSynthetic
attribute -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeMapperPREVIEW
<?> Returns the attribute mapper for a standard 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
-
ANNOTATION_DEFAULT
Attribute mapper for theAnnotationDefault
attribute -
BOOTSTRAP_METHODS
Attribute mapper for theBootstrapMethods
attribute -
CHARACTER_RANGE_TABLE
public static final AttributeMapperPREVIEW<CharacterRangeTableAttributePREVIEW> CHARACTER_RANGE_TABLEAttribute mapper for theCharacterRangeTable
attribute -
CODE
Attribute mapper for theCode
attribute -
COMPILATION_ID
Attribute mapper for theCompilationID
attribute -
CONSTANT_VALUE
Attribute mapper for theConstantValue
attribute -
DEPRECATED
Attribute mapper for theDeprecated
attribute -
ENCLOSING_METHOD
Attribute mapper for theEnclosingMethod
attribute -
EXCEPTIONS
Attribute mapper for theExceptions
attribute -
INNER_CLASSES
Attribute mapper for theInnerClasses
attribute -
LINE_NUMBER_TABLE
Attribute mapper for theLineNumberTable
attribute -
LOCAL_VARIABLE_TABLE
Attribute mapper for theLocalVariableTable
attribute -
LOCAL_VARIABLE_TYPE_TABLE
public static final AttributeMapperPREVIEW<LocalVariableTypeTableAttributePREVIEW> LOCAL_VARIABLE_TYPE_TABLEAttribute mapper for theLocalVariableTypeTable
attribute -
METHOD_PARAMETERS
Attribute mapper for theMethodParameters
attribute -
MODULE
Attribute mapper for theModule
attribute -
MODULE_HASHES
Attribute mapper for theModuleHashes
attribute -
MODULE_MAIN_CLASS
Attribute mapper for theModuleMainClass
attribute -
MODULE_PACKAGES
Attribute mapper for theModulePackages
attribute -
MODULE_RESOLUTION
Attribute mapper for theModuleResolution
attribute -
MODULE_TARGET
Attribute mapper for theModuleTarget
attribute -
NEST_HOST
Attribute mapper for theNestHost
attribute -
NEST_MEMBERS
Attribute mapper for theNestMembers
attribute -
PERMITTED_SUBCLASSES
public static final AttributeMapperPREVIEW<PermittedSubclassesAttributePREVIEW> PERMITTED_SUBCLASSESAttribute mapper for thePermittedSubclasses
attribute -
RECORD
Attribute mapper for theRecord
attribute -
RUNTIME_INVISIBLE_ANNOTATIONS
public static final AttributeMapperPREVIEW<RuntimeInvisibleAnnotationsAttributePREVIEW> RUNTIME_INVISIBLE_ANNOTATIONSAttribute mapper for theRuntimeInvisibleAnnotations
attribute -
RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS
public static final AttributeMapperPREVIEW<RuntimeInvisibleParameterAnnotationsAttributePREVIEW> RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONSAttribute mapper for theRuntimeInvisibleParameterAnnotations
attribute -
RUNTIME_INVISIBLE_TYPE_ANNOTATIONS
public static final AttributeMapperPREVIEW<RuntimeInvisibleTypeAnnotationsAttributePREVIEW> RUNTIME_INVISIBLE_TYPE_ANNOTATIONSAttribute mapper for theRuntimeInvisibleTypeAnnotations
attribute -
RUNTIME_VISIBLE_ANNOTATIONS
public static final AttributeMapperPREVIEW<RuntimeVisibleAnnotationsAttributePREVIEW> RUNTIME_VISIBLE_ANNOTATIONSAttribute mapper for theRuntimeVisibleAnnotations
attribute -
RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS
public static final AttributeMapperPREVIEW<RuntimeVisibleParameterAnnotationsAttributePREVIEW> RUNTIME_VISIBLE_PARAMETER_ANNOTATIONSAttribute mapper for theRuntimeVisibleParameterAnnotations
attribute -
RUNTIME_VISIBLE_TYPE_ANNOTATIONS
public static final AttributeMapperPREVIEW<RuntimeVisibleTypeAnnotationsAttributePREVIEW> RUNTIME_VISIBLE_TYPE_ANNOTATIONSAttribute mapper for theRuntimeVisibleTypeAnnotations
attribute -
SIGNATURE
Attribute mapper for theSignature
attribute -
SOURCE_DEBUG_EXTENSION
public static final AttributeMapperPREVIEW<SourceDebugExtensionAttributePREVIEW> SOURCE_DEBUG_EXTENSIONAttribute mapper for theSourceDebugExtension
attribute -
SOURCE_FILE
Attribute mapper for theSourceFile
attribute -
SOURCE_ID
Attribute mapper for theSourceID
attribute -
STACK_MAP_TABLE
Attribute mapper for theStackMapTable
attribute -
SYNTHETIC
Attribute mapper for theSynthetic
attribute -
PREDEFINED_ATTRIBUTES
All standard attribute mappers.
-
-
Method Details
-
standardAttribute
Returns the attribute mapper for a standard attribute.- Parameters:
name
- the name of the attribute to find- Returns:
- the attribute mapper for a standard attribute
-
Attributes
when preview features are enabled.