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
FieldsModifier and TypeFieldDescriptionstatic final AttributeMapperPREVIEW<AnnotationDefaultAttributePREVIEW> Attribute mapper for theAnnotationDefaultattributestatic final AttributeMapperPREVIEW<BootstrapMethodsAttributePREVIEW> Attribute mapper for theBootstrapMethodsattributestatic final AttributeMapperPREVIEW<CharacterRangeTableAttributePREVIEW> Attribute mapper for theCharacterRangeTableattributestatic final AttributeMapperPREVIEW<CodeAttributePREVIEW> Attribute mapper for theCodeattributestatic final AttributeMapperPREVIEW<CompilationIDAttributePREVIEW> Attribute mapper for theCompilationIDattributestatic final AttributeMapperPREVIEW<ConstantValueAttributePREVIEW> Attribute mapper for theConstantValueattributestatic final AttributeMapperPREVIEW<DeprecatedAttributePREVIEW> Attribute mapper for theDeprecatedattributestatic final AttributeMapperPREVIEW<EnclosingMethodAttributePREVIEW> Attribute mapper for theEnclosingMethodattributestatic final AttributeMapperPREVIEW<ExceptionsAttributePREVIEW> Attribute mapper for theExceptionsattributestatic final AttributeMapperPREVIEW<InnerClassesAttributePREVIEW> Attribute mapper for theInnerClassesattributestatic final AttributeMapperPREVIEW<LineNumberTableAttributePREVIEW> Attribute mapper for theLineNumberTableattributestatic final AttributeMapperPREVIEW<LocalVariableTableAttributePREVIEW> Attribute mapper for theLocalVariableTableattributestatic final AttributeMapperPREVIEW<LocalVariableTypeTableAttributePREVIEW> Attribute mapper for theLocalVariableTypeTableattributestatic final AttributeMapperPREVIEW<MethodParametersAttributePREVIEW> Attribute mapper for theMethodParametersattributestatic final AttributeMapperPREVIEW<ModuleAttributePREVIEW> Attribute mapper for theModuleattributestatic final AttributeMapperPREVIEW<ModuleHashesAttributePREVIEW> Attribute mapper for theModuleHashesattributestatic final AttributeMapperPREVIEW<ModuleMainClassAttributePREVIEW> Attribute mapper for theModuleMainClassattributestatic final AttributeMapperPREVIEW<ModulePackagesAttributePREVIEW> Attribute mapper for theModulePackagesattributestatic final AttributeMapperPREVIEW<ModuleResolutionAttributePREVIEW> Attribute mapper for theModuleResolutionattributestatic final AttributeMapperPREVIEW<ModuleTargetAttributePREVIEW> Attribute mapper for theModuleTargetattributestatic 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 StringSyntheticstatic final AttributeMapperPREVIEW<NestHostAttributePREVIEW> Attribute mapper for theNestHostattributestatic final AttributeMapperPREVIEW<NestMembersAttributePREVIEW> Attribute mapper for theNestMembersattributestatic final AttributeMapperPREVIEW<PermittedSubclassesAttributePREVIEW> Attribute mapper for thePermittedSubclassesattributestatic final Set<AttributeMapperPREVIEW<?>> All standard attribute mappers.static final AttributeMapperPREVIEW<RecordAttributePREVIEW> Attribute mapper for theRecordattributeAttribute mapper for theRuntimeInvisibleAnnotationsattributeAttribute mapper for theRuntimeInvisibleParameterAnnotationsattributeAttribute mapper for theRuntimeInvisibleTypeAnnotationsattributeAttribute mapper for theRuntimeVisibleAnnotationsattributeAttribute mapper for theRuntimeVisibleParameterAnnotationsattributeAttribute mapper for theRuntimeVisibleTypeAnnotationsattributestatic final AttributeMapperPREVIEW<SignatureAttributePREVIEW> Attribute mapper for theSignatureattributestatic final AttributeMapperPREVIEW<SourceDebugExtensionAttributePREVIEW> Attribute mapper for theSourceDebugExtensionattributestatic final AttributeMapperPREVIEW<SourceFileAttributePREVIEW> Attribute mapper for theSourceFileattributestatic final AttributeMapperPREVIEW<SourceIDAttributePREVIEW> Attribute mapper for theSourceIDattributestatic final AttributeMapperPREVIEW<StackMapTableAttributePREVIEW> Attribute mapper for theStackMapTableattributestatic final AttributeMapperPREVIEW<SyntheticAttributePREVIEW> Attribute mapper for theSyntheticattribute -
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 theAnnotationDefaultattribute -
BOOTSTRAP_METHODS
Attribute mapper for theBootstrapMethodsattribute -
CHARACTER_RANGE_TABLE
public static final AttributeMapperPREVIEW<CharacterRangeTableAttributePREVIEW> CHARACTER_RANGE_TABLEAttribute mapper for theCharacterRangeTableattribute -
CODE
Attribute mapper for theCodeattribute -
COMPILATION_ID
Attribute mapper for theCompilationIDattribute -
CONSTANT_VALUE
Attribute mapper for theConstantValueattribute -
DEPRECATED
Attribute mapper for theDeprecatedattribute -
ENCLOSING_METHOD
Attribute mapper for theEnclosingMethodattribute -
EXCEPTIONS
Attribute mapper for theExceptionsattribute -
INNER_CLASSES
Attribute mapper for theInnerClassesattribute -
LINE_NUMBER_TABLE
Attribute mapper for theLineNumberTableattribute -
LOCAL_VARIABLE_TABLE
Attribute mapper for theLocalVariableTableattribute -
LOCAL_VARIABLE_TYPE_TABLE
public static final AttributeMapperPREVIEW<LocalVariableTypeTableAttributePREVIEW> LOCAL_VARIABLE_TYPE_TABLEAttribute mapper for theLocalVariableTypeTableattribute -
METHOD_PARAMETERS
Attribute mapper for theMethodParametersattribute -
MODULE
Attribute mapper for theModuleattribute -
MODULE_HASHES
Attribute mapper for theModuleHashesattribute -
MODULE_MAIN_CLASS
Attribute mapper for theModuleMainClassattribute -
MODULE_PACKAGES
Attribute mapper for theModulePackagesattribute -
MODULE_RESOLUTION
Attribute mapper for theModuleResolutionattribute -
MODULE_TARGET
Attribute mapper for theModuleTargetattribute -
NEST_HOST
Attribute mapper for theNestHostattribute -
NEST_MEMBERS
Attribute mapper for theNestMembersattribute -
PERMITTED_SUBCLASSES
public static final AttributeMapperPREVIEW<PermittedSubclassesAttributePREVIEW> PERMITTED_SUBCLASSESAttribute mapper for thePermittedSubclassesattribute -
RECORD
Attribute mapper for theRecordattribute -
RUNTIME_INVISIBLE_ANNOTATIONS
public static final AttributeMapperPREVIEW<RuntimeInvisibleAnnotationsAttributePREVIEW> RUNTIME_INVISIBLE_ANNOTATIONSAttribute mapper for theRuntimeInvisibleAnnotationsattribute -
RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS
public static final AttributeMapperPREVIEW<RuntimeInvisibleParameterAnnotationsAttributePREVIEW> RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONSAttribute mapper for theRuntimeInvisibleParameterAnnotationsattribute -
RUNTIME_INVISIBLE_TYPE_ANNOTATIONS
public static final AttributeMapperPREVIEW<RuntimeInvisibleTypeAnnotationsAttributePREVIEW> RUNTIME_INVISIBLE_TYPE_ANNOTATIONSAttribute mapper for theRuntimeInvisibleTypeAnnotationsattribute -
RUNTIME_VISIBLE_ANNOTATIONS
public static final AttributeMapperPREVIEW<RuntimeVisibleAnnotationsAttributePREVIEW> RUNTIME_VISIBLE_ANNOTATIONSAttribute mapper for theRuntimeVisibleAnnotationsattribute -
RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS
public static final AttributeMapperPREVIEW<RuntimeVisibleParameterAnnotationsAttributePREVIEW> RUNTIME_VISIBLE_PARAMETER_ANNOTATIONSAttribute mapper for theRuntimeVisibleParameterAnnotationsattribute -
RUNTIME_VISIBLE_TYPE_ANNOTATIONS
public static final AttributeMapperPREVIEW<RuntimeVisibleTypeAnnotationsAttributePREVIEW> RUNTIME_VISIBLE_TYPE_ANNOTATIONSAttribute mapper for theRuntimeVisibleTypeAnnotationsattribute -
SIGNATURE
Attribute mapper for theSignatureattribute -
SOURCE_DEBUG_EXTENSION
public static final AttributeMapperPREVIEW<SourceDebugExtensionAttributePREVIEW> SOURCE_DEBUG_EXTENSIONAttribute mapper for theSourceDebugExtensionattribute -
SOURCE_FILE
Attribute mapper for theSourceFileattribute -
SOURCE_ID
Attribute mapper for theSourceIDattribute -
STACK_MAP_TABLE
Attribute mapper for theStackMapTableattribute -
SYNTHETIC
Attribute mapper for theSyntheticattribute -
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
-
Attributeswhen preview features are enabled.