クラスAttributes
java.lang.Object
java.lang.classfile.Attributes
public final class Attributes extends Object
Attributes
は、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
標準クラス・ファイル属性の属性マッパー。
特に指定がないかぎり、各メソッドによって返されるマッパーは、特定のロケーションにある複数の属性インスタンスを許可しません。
最も安定したSTATELESS
PREVIEWマッパーは次のとおりです:
CP_REFS
PREVIEWの安定性を備えたマッパーは次のとおりです:
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
PREVIEWの安定性を備えたマッパーは次のとおりです:
UNSTABLE
PREVIEWマッパーは次のとおりです:
- 導入されたバージョン:
- 22
- 関連項目:
-
フィールドのサマリー
フィールド修飾子と型フィールド説明static final String
AnnotationDefaultstatic final String
BootstrapMethodsstatic final String
CharacterRangeTablestatic final String
コードstatic final String
CompilationIDstatic final String
ConstantValuestatic final String
非推奨static final String
EnclosingMethodstatic final String
例外static final String
InnerClassesstatic final String
LineNumberTablestatic final String
LocalVariableTablestatic final String
LocalVariableTypeTablestatic final String
MethodParametersstatic final String
モジュールstatic 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
レコードstatic final String
RuntimeInvisibleAnnotationsstatic final String
RuntimeInvisibleParameterAnnotationsstatic final String
RuntimeInvisibleTypeAnnotationsstatic final String
RuntimeVisibleAnnotationsstatic final String
RuntimeVisibleParameterAnnotationsstatic final String
RuntimeVisibleTypeAnnotationsstatic final String
シグネチャstatic final String
SourceDebugExtensionstatic final String
SourceFilestatic final String
SourceIDstatic final String
StackMapTablestatic final String
複合 -
メソッドのサマリー
修飾子と型メソッド説明AnnotationDefault
属性の属性マッパーを返します。BootstrapMethods
属性の属性マッパーを返します。CharacterRangeTable
属性の属性マッパーを返します。code()
Code
属性の属性マッパーを返します。CompilationID
属性の属性マッパーを返します。ConstantValue
属性の属性マッパーを返します。Deprecated
属性の属性マッパーを返します。EnclosingMethod
属性の属性マッパーを返します。Exceptions
属性の属性マッパーを返します。InnerClasses
属性の属性マッパーを返します。LineNumberTable
属性の属性マッパーを返します。LocalVariableTable
属性の属性マッパーを返します。LocalVariableTypeTable
属性の属性マッパーを返します。MethodParameters
属性の属性マッパーを返します。module()
Module
属性の属性マッパーを返します。ModuleHashes
属性の属性マッパーを返します。ModuleMainClass
属性の属性マッパーを返します。ModulePackages
属性の属性マッパーを返します。ModuleResolution
属性の属性マッパーを返します。ModuleTarget
属性の属性マッパーを返します。nestHost()
NestHost
属性の属性マッパーを返します。NestMembers
属性の属性マッパーを返します。PermittedSubclasses
属性の属性マッパーを返します。record()
Record
属性の属性マッパーを返します。RuntimeInvisibleAnnotations
属性の属性マッパーを返します。RuntimeInvisibleParameterAnnotations
属性の属性マッパーを返します。RuntimeInvisibleTypeAnnotations
属性の属性マッパーを返します。RuntimeVisibleAnnotations
属性の属性マッパーを返します。RuntimeVisibleParameterAnnotations
属性の属性マッパーを返します。RuntimeVisibleTypeAnnotations
属性の属性マッパーを返します。Signature
属性の属性マッパーを返します。SourceDebugExtension
属性の属性マッパーを返します。SourceFile
属性の属性マッパーを返します。sourceId()
SourceID
属性の属性マッパーを返します。StackMapTable
属性の属性マッパーを返します。Synthetic
属性の属性マッパーを返します。
-
フィールド詳細
-
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
public static final String NAME_RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONSRuntimeInvisibleParameterAnnotations- 関連項目:
-
NAME_RUNTIME_INVISIBLE_TYPE_ANNOTATIONS
public static final String NAME_RUNTIME_INVISIBLE_TYPE_ANNOTATIONSRuntimeInvisibleTypeAnnotations- 関連項目:
-
NAME_RUNTIME_VISIBLE_ANNOTATIONS
-
NAME_RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS
public static final String NAME_RUNTIME_VISIBLE_PARAMETER_ANNOTATIONSRuntimeVisibleParameterAnnotations- 関連項目:
-
NAME_RUNTIME_VISIBLE_TYPE_ANNOTATIONS
public static final String NAME_RUNTIME_VISIBLE_TYPE_ANNOTATIONSRuntimeVisibleTypeAnnotations- 関連項目:
-
NAME_SIGNATURE
-
NAME_SOURCE_DEBUG_EXTENSION
-
NAME_SOURCE_FILE
-
NAME_SOURCE_ID
-
NAME_STACK_MAP_TABLE
-
NAME_SYNTHETIC
-
-
メソッドの詳細
-
annotationDefault
public static AttributeMapperPREVIEW<AnnotationDefaultAttributePREVIEW> annotationDefault()AnnotationDefault
属性の属性マッパーを返します。- 戻り値:
AnnotationDefault
属性の属性マッパー- 導入されたバージョン:
- 23
-
bootstrapMethods
public static AttributeMapperPREVIEW<BootstrapMethodsAttributePREVIEW> bootstrapMethods()BootstrapMethods
属性の属性マッパーを返します。- 戻り値:
BootstrapMethods
属性の属性マッパー- 導入されたバージョン:
- 23
-
characterRangeTable
public static AttributeMapperPREVIEW<CharacterRangeTableAttributePREVIEW> characterRangeTable()CharacterRangeTable
属性の属性マッパーを返します。 マッパーは、特定のロケーションにある複数のインスタンスを許可します。- 戻り値:
CharacterRangeTable
属性の属性マッパー- 導入されたバージョン:
- 23
-
code
public static AttributeMapperPREVIEW<CodeAttributePREVIEW> code()Code
属性の属性マッパーを返します。- 戻り値:
Code
属性の属性マッパー- 導入されたバージョン:
- 23
-
compilationId
public static AttributeMapperPREVIEW<CompilationIDAttributePREVIEW> compilationId()CompilationID
属性の属性マッパーを返します。- 戻り値:
CompilationID
属性の属性マッパー- 導入されたバージョン:
- 23
-
constantValue
public static AttributeMapperPREVIEW<ConstantValueAttributePREVIEW> constantValue()ConstantValue
属性の属性マッパーを返します。- 戻り値:
ConstantValue
属性の属性マッパー- 導入されたバージョン:
- 23
-
deprecated
public static AttributeMapperPREVIEW<DeprecatedAttributePREVIEW> deprecated()Deprecated
属性の属性マッパーを返します。 マッパーは、特定のロケーションにある複数のインスタンスを許可します。- 戻り値:
Deprecated
属性の属性マッパー- 導入されたバージョン:
- 23
-
enclosingMethod
public static AttributeMapperPREVIEW<EnclosingMethodAttributePREVIEW> enclosingMethod()EnclosingMethod
属性の属性マッパーを返します。- 戻り値:
EnclosingMethod
属性の属性マッパー- 導入されたバージョン:
- 23
-
exceptions
public static AttributeMapperPREVIEW<ExceptionsAttributePREVIEW> exceptions()Exceptions
属性の属性マッパーを返します。- 戻り値:
Exceptions
属性の属性マッパー- 導入されたバージョン:
- 23
-
innerClasses
public static AttributeMapperPREVIEW<InnerClassesAttributePREVIEW> innerClasses()InnerClasses
属性の属性マッパーを返します。- 戻り値:
InnerClasses
属性の属性マッパー- 導入されたバージョン:
- 23
-
lineNumberTable
public static AttributeMapperPREVIEW<LineNumberTableAttributePREVIEW> lineNumberTable()LineNumberTable
属性の属性マッパーを返します。 マッパーは、特定のロケーションにある複数のインスタンスを許可します。- 戻り値:
LineNumberTable
属性の属性マッパー- 導入されたバージョン:
- 23
-
localVariableTable
public static AttributeMapperPREVIEW<LocalVariableTableAttributePREVIEW> localVariableTable()LocalVariableTable
属性の属性マッパーを返します。 マッパーは、特定のロケーションにある複数のインスタンスを許可します。- 戻り値:
LocalVariableTable
属性の属性マッパー- 導入されたバージョン:
- 23
-
localVariableTypeTable
public static AttributeMapperPREVIEW<LocalVariableTypeTableAttributePREVIEW> localVariableTypeTable()LocalVariableTypeTable
属性の属性マッパーを返します。 マッパーは、特定のロケーションにある複数のインスタンスを許可します。- 戻り値:
LocalVariableTypeTable
属性の属性マッパー- 導入されたバージョン:
- 23
-
methodParameters
public static AttributeMapperPREVIEW<MethodParametersAttributePREVIEW> methodParameters()MethodParameters
属性の属性マッパーを返します。- 戻り値:
MethodParameters
属性の属性マッパー- 導入されたバージョン:
- 23
-
module
public static AttributeMapperPREVIEW<ModuleAttributePREVIEW> module()Module
属性の属性マッパーを返します。- 戻り値:
Module
属性の属性マッパー- 導入されたバージョン:
- 23
-
moduleHashes
public static AttributeMapperPREVIEW<ModuleHashesAttributePREVIEW> moduleHashes()ModuleHashes
属性の属性マッパーを返します。- 戻り値:
ModuleHashes
属性の属性マッパー- 導入されたバージョン:
- 23
-
moduleMainClass
public static AttributeMapperPREVIEW<ModuleMainClassAttributePREVIEW> moduleMainClass()ModuleMainClass
属性の属性マッパーを返します。- 戻り値:
ModuleMainClass
属性の属性マッパー- 導入されたバージョン:
- 23
-
modulePackages
public static AttributeMapperPREVIEW<ModulePackagesAttributePREVIEW> modulePackages()ModulePackages
属性の属性マッパーを返します。- 戻り値:
ModulePackages
属性の属性マッパー- 導入されたバージョン:
- 23
-
moduleResolution
public static AttributeMapperPREVIEW<ModuleResolutionAttributePREVIEW> moduleResolution()ModuleResolution
属性の属性マッパーを返します。- 戻り値:
ModuleResolution
属性の属性マッパー- 導入されたバージョン:
- 23
-
moduleTarget
public static AttributeMapperPREVIEW<ModuleTargetAttributePREVIEW> moduleTarget()ModuleTarget
属性の属性マッパーを返します。- 戻り値:
ModuleTarget
属性の属性マッパー- 導入されたバージョン:
- 23
-
nestHost
public static AttributeMapperPREVIEW<NestHostAttributePREVIEW> nestHost()NestHost
属性の属性マッパーを返します。- 戻り値:
NestHost
属性の属性マッパー- 導入されたバージョン:
- 23
-
nestMembers
public static AttributeMapperPREVIEW<NestMembersAttributePREVIEW> nestMembers()NestMembers
属性の属性マッパーを返します。- 戻り値:
NestMembers
属性の属性マッパー- 導入されたバージョン:
- 23
-
permittedSubclasses
public static AttributeMapperPREVIEW<PermittedSubclassesAttributePREVIEW> permittedSubclasses()PermittedSubclasses
属性の属性マッパーを返します。- 戻り値:
PermittedSubclasses
属性の属性マッパー- 導入されたバージョン:
- 23
-
record
public static AttributeMapperPREVIEW<RecordAttributePREVIEW> record()Record
属性の属性マッパーを返します。- 戻り値:
Record
属性の属性マッパー- 導入されたバージョン:
- 23
-
runtimeInvisibleAnnotations
public static AttributeMapperPREVIEW<RuntimeInvisibleAnnotationsAttributePREVIEW> runtimeInvisibleAnnotations()RuntimeInvisibleAnnotations
属性の属性マッパーを返します。- 戻り値:
RuntimeInvisibleAnnotations
属性の属性マッパー- 導入されたバージョン:
- 23
-
runtimeInvisibleParameterAnnotations
public static AttributeMapperPREVIEW<RuntimeInvisibleParameterAnnotationsAttributePREVIEW> runtimeInvisibleParameterAnnotations()RuntimeInvisibleParameterAnnotations
属性の属性マッパーを返します。- 戻り値:
RuntimeInvisibleParameterAnnotations
属性の属性マッパー- 導入されたバージョン:
- 23
-
runtimeInvisibleTypeAnnotations
public static AttributeMapperPREVIEW<RuntimeInvisibleTypeAnnotationsAttributePREVIEW> runtimeInvisibleTypeAnnotations()RuntimeInvisibleTypeAnnotations
属性の属性マッパーを返します。- 戻り値:
RuntimeInvisibleTypeAnnotations
属性の属性マッパー- 導入されたバージョン:
- 23
-
runtimeVisibleAnnotations
public static AttributeMapperPREVIEW<RuntimeVisibleAnnotationsAttributePREVIEW> runtimeVisibleAnnotations()RuntimeVisibleAnnotations
属性の属性マッパーを返します。- 戻り値:
RuntimeVisibleAnnotations
属性の属性マッパー- 導入されたバージョン:
- 23
-
runtimeVisibleParameterAnnotations
public static AttributeMapperPREVIEW<RuntimeVisibleParameterAnnotationsAttributePREVIEW> runtimeVisibleParameterAnnotations()RuntimeVisibleParameterAnnotations
属性の属性マッパーを返します。- 戻り値:
RuntimeVisibleParameterAnnotations
属性の属性マッパー- 導入されたバージョン:
- 23
-
runtimeVisibleTypeAnnotations
public static AttributeMapperPREVIEW<RuntimeVisibleTypeAnnotationsAttributePREVIEW> runtimeVisibleTypeAnnotations()RuntimeVisibleTypeAnnotations
属性の属性マッパーを返します。- 戻り値:
RuntimeVisibleTypeAnnotations
属性の属性マッパー- 導入されたバージョン:
- 23
-
signature
public static AttributeMapperPREVIEW<SignatureAttributePREVIEW> signature()Signature
属性の属性マッパーを返します。- 戻り値:
Signature
属性の属性マッパー- 導入されたバージョン:
- 23
-
sourceDebugExtension
public static AttributeMapperPREVIEW<SourceDebugExtensionAttributePREVIEW> sourceDebugExtension()SourceDebugExtension
属性の属性マッパーを返します。- 戻り値:
SourceDebugExtension
属性の属性マッパー- 導入されたバージョン:
- 23
-
sourceFile
public static AttributeMapperPREVIEW<SourceFileAttributePREVIEW> sourceFile()SourceFile
属性の属性マッパーを返します。- 戻り値:
SourceFile
属性の属性マッパー- 導入されたバージョン:
- 23
-
sourceId
public static AttributeMapperPREVIEW<SourceIDAttributePREVIEW> sourceId()SourceID
属性の属性マッパーを返します。- 戻り値:
SourceID
属性の属性マッパー- 導入されたバージョン:
- 23
-
stackMapTable
public static AttributeMapperPREVIEW<StackMapTableAttributePREVIEW> stackMapTable()StackMapTable
属性の属性マッパーを返します。- 戻り値:
StackMapTable
属性の属性マッパー- 導入されたバージョン:
- 23
-
synthetic
public static AttributeMapperPREVIEW<SyntheticAttributePREVIEW> synthetic()Synthetic
属性の属性マッパーを返します。 マッパーは、特定のロケーションにある複数のインスタンスを許可します。- 戻り値:
Synthetic
属性の属性マッパー- 導入されたバージョン:
- 23
-
Attributes
を使用できます。