クラスAttributes
java.lang.Object
java.lang.classfile.Attributes
public final class Attributes extends Object
Attributesは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
標準クラス・ファイル属性の属性マッパー。
特に指定がないかぎり、各メソッドによって返されるマッパーは、特定のロケーションにある複数の属性インスタンスを許可しません。
最も安定したSTATELESSPREVIEWマッパーは次のとおりです:
CP_REFSPREVIEWの安定性を備えたマッパーは次のとおりです:
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()
LABELSPREVIEWの安定性を備えたマッパーは次のとおりです:
UNSTABLEPREVIEWマッパーは次のとおりです:
- 導入されたバージョン:
- 22
- 関連項目:
-
フィールドのサマリー
フィールド修飾子と型フィールド説明static final StringAnnotationDefaultstatic final StringBootstrapMethodsstatic final StringCharacterRangeTablestatic final Stringコードstatic final StringCompilationIDstatic final StringConstantValuestatic final String非推奨static final StringEnclosingMethodstatic final String例外static final StringInnerClassesstatic final StringLineNumberTablestatic final StringLocalVariableTablestatic final StringLocalVariableTypeTablestatic final StringMethodParametersstatic final Stringモジュールstatic final StringModuleHashesstatic final StringModuleMainClassstatic final StringModulePackagesstatic final StringModuleResolutionstatic final StringModuleTargetstatic final StringNestHoststatic final StringNestMembersstatic final StringPermittedSubclassesstatic final Stringレコードstatic final StringRuntimeInvisibleAnnotationsstatic final StringRuntimeInvisibleParameterAnnotationsstatic final StringRuntimeInvisibleTypeAnnotationsstatic final StringRuntimeVisibleAnnotationsstatic final StringRuntimeVisibleParameterAnnotationsstatic final StringRuntimeVisibleTypeAnnotationsstatic final Stringシグネチャstatic final StringSourceDebugExtensionstatic final StringSourceFilestatic final StringSourceIDstatic final StringStackMapTablestatic 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を使用できます。