クラスAttributes
java.lang.Object
java.lang.classfile.Attributes
public final class Attributes extends Object
事前定義済の(JVMS 4.7)およびJDK固有の非標準属性の属性マッパー。
特に指定がないかぎり、各マッパーは、このクラスのメソッドによって戻されます:
- JDK固有のものではなく、JVMSで事前定義されています
- 同じ構造で「複数の属性インスタンス」を許可しません
- 属性は、「定数プール」に「データ依存性」を持ちます。
- 導入されたバージョン:
- 24
- 関連項目:
-
フィールドのサマリー
フィールド修飾子と型フィールド説明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
属性のマッパーを返します。static AttributeMapper
<CodeAttribute> code()
Code
属性のマッパーを返します。CompilationID
属性のマッパーを返します。ConstantValue
属性のマッパーを返します。static AttributeMapper
<DeprecatedAttribute> Deprecated
属性のマッパーを返します。EnclosingMethod
属性のマッパーを返します。static AttributeMapper
<ExceptionsAttribute> Exceptions
属性のマッパーを返します。static AttributeMapper
<InnerClassesAttribute> InnerClasses
属性のマッパーを返します。LineNumberTable
属性のマッパーを返します。LocalVariableTable
属性のマッパーを返します。LocalVariableTypeTable
属性のマッパーを返します。MethodParameters
属性のマッパーを返します。static AttributeMapper
<ModuleAttribute> module()
Module
属性のマッパーを返します。static AttributeMapper
<ModuleHashesAttribute> ModuleHashes
属性のマッパーを返します。ModuleMainClass
属性のマッパーを返します。ModulePackages
属性のマッパーを返します。ModuleResolution
属性のマッパーを返します。static AttributeMapper
<ModuleTargetAttribute> ModuleTarget
属性のマッパーを返します。static AttributeMapper
<NestHostAttribute> nestHost()
NestHost
属性のマッパーを返します。static AttributeMapper
<NestMembersAttribute> NestMembers
属性のマッパーを返します。PermittedSubclasses
属性のマッパーを返します。static AttributeMapper
<RecordAttribute> record()
Record
属性のマッパーを返します。RuntimeInvisibleAnnotations
属性のマッパーを返します。RuntimeInvisibleParameterAnnotations
属性のマッパーを返します。RuntimeInvisibleTypeAnnotations
属性のマッパーを返します。RuntimeVisibleAnnotations
属性のマッパーを返します。RuntimeVisibleParameterAnnotations
属性のマッパーを返します。RuntimeVisibleTypeAnnotations
属性のマッパーを返します。static AttributeMapper
<SignatureAttribute> Signature
属性のマッパーを返します。SourceDebugExtension
属性のマッパーを返します。static AttributeMapper
<SourceFileAttribute> SourceFile
属性のマッパーを返します。static AttributeMapper
<SourceIDAttribute> sourceId()
SourceID
属性のマッパーを返します。StackMapTable
属性のマッパーを返します。static AttributeMapper
<SyntheticAttribute> 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 AttributeMapper<AnnotationDefaultAttribute> annotationDefault()AnnotationDefault
属性のマッパーを返します。- 戻り値:
AnnotationDefault
属性のマッパー
-
bootstrapMethods
public static AttributeMapper<BootstrapMethodsAttribute> bootstrapMethods()BootstrapMethods
属性のマッパーを返します。- 戻り値:
BootstrapMethods
属性のマッパー
-
characterRangeTable
public static AttributeMapper<CharacterRangeTableAttribute> characterRangeTable()CharacterRangeTable
属性のマッパーを返します。 これはJDK固有の属性です。 マッパーはCode
属性で複数のインスタンスを許可しますが、この属性は1回のみ発行する必要があります。 これは、「ラベル」へのデータ依存性があります。- 戻り値:
CharacterRangeTable
属性のマッパー
-
code
-
compilationId
public static AttributeMapper<CompilationIDAttribute> compilationId()CompilationID
属性のマッパーを返します。 これはJDK固有の属性です。- 戻り値:
CompilationID
属性のマッパー
-
constantValue
public static AttributeMapper<ConstantValueAttribute> constantValue()ConstantValue
属性のマッパーを返します。- 戻り値:
ConstantValue
属性のマッパー
-
deprecated
public static AttributeMapper<DeprecatedAttribute> deprecated()- 戻り値:
Deprecated
属性のマッパー
-
enclosingMethod
public static AttributeMapper<EnclosingMethodAttribute> enclosingMethod()EnclosingMethod
属性のマッパーを返します。- 戻り値:
EnclosingMethod
属性のマッパー
-
exceptions
public static AttributeMapper<ExceptionsAttribute> exceptions()Exceptions
属性のマッパーを返します。- 戻り値:
Exceptions
属性のマッパー
-
innerClasses
public static AttributeMapper<InnerClassesAttribute> innerClasses()InnerClasses
属性のマッパーを返します。- 戻り値:
InnerClasses
属性のマッパー
-
lineNumberTable
public static AttributeMapper<LineNumberTableAttribute> lineNumberTable()- 戻り値:
LineNumberTable
属性のマッパー
-
localVariableTable
public static AttributeMapper<LocalVariableTableAttribute> localVariableTable()- 戻り値:
LocalVariableTable
属性のマッパー
-
localVariableTypeTable
public static AttributeMapper<LocalVariableTypeTableAttribute> localVariableTypeTable()- 戻り値:
LocalVariableTypeTable
属性のマッパー
-
methodParameters
public static AttributeMapper<MethodParametersAttribute> methodParameters()MethodParameters
属性のマッパーを返します。- 戻り値:
MethodParameters
属性のマッパー
-
module
-
moduleHashes
public static AttributeMapper<ModuleHashesAttribute> moduleHashes()ModuleHashes
属性のマッパーを返します。 これはJDK固有の属性です。- 戻り値:
ModuleHashes
属性のマッパー
-
moduleMainClass
public static AttributeMapper<ModuleMainClassAttribute> moduleMainClass()ModuleMainClass
属性のマッパーを返します。- 戻り値:
ModuleMainClass
属性のマッパー
-
modulePackages
public static AttributeMapper<ModulePackagesAttribute> modulePackages()ModulePackages
属性のマッパーを返します。- 戻り値:
ModulePackages
属性のマッパー
-
moduleResolution
public static AttributeMapper<ModuleResolutionAttribute> moduleResolution()- 戻り値:
ModuleResolution
属性のマッパー
-
moduleTarget
public static AttributeMapper<ModuleTargetAttribute> moduleTarget()ModuleTarget
属性のマッパーを返します。 これはJDK固有の属性です。- 戻り値:
ModuleTarget
属性のマッパー
-
nestHost
public static AttributeMapper<NestHostAttribute> nestHost()NestHost
属性のマッパーを返します。- 戻り値:
NestHost
属性のマッパー
-
nestMembers
public static AttributeMapper<NestMembersAttribute> nestMembers()NestMembers
属性のマッパーを返します。- 戻り値:
NestMembers
属性のマッパー
-
permittedSubclasses
public static AttributeMapper<PermittedSubclassesAttribute> permittedSubclasses()PermittedSubclasses
属性のマッパーを返します。- 戻り値:
PermittedSubclasses
属性のマッパー
-
record
-
runtimeInvisibleAnnotations
public static AttributeMapper<RuntimeInvisibleAnnotationsAttribute> runtimeInvisibleAnnotations()RuntimeInvisibleAnnotations
属性のマッパーを返します。- 戻り値:
RuntimeInvisibleAnnotations
属性のマッパー
-
runtimeInvisibleParameterAnnotations
public static AttributeMapper<RuntimeInvisibleParameterAnnotationsAttribute> runtimeInvisibleParameterAnnotations()RuntimeInvisibleParameterAnnotations
属性のマッパーを返します。- 戻り値:
RuntimeInvisibleParameterAnnotations
属性のマッパー
-
runtimeInvisibleTypeAnnotations
public static AttributeMapper<RuntimeInvisibleTypeAnnotationsAttribute> runtimeInvisibleTypeAnnotations()RuntimeInvisibleTypeAnnotations
属性のマッパーを返します。 これは、class
ファイル形式での「任意のインデックス」へのデータ依存性があります。- 戻り値:
RuntimeInvisibleTypeAnnotations
属性のマッパー
-
runtimeVisibleAnnotations
public static AttributeMapper<RuntimeVisibleAnnotationsAttribute> runtimeVisibleAnnotations()RuntimeVisibleAnnotations
属性のマッパーを返します。- 戻り値:
RuntimeVisibleAnnotations
属性のマッパー
-
runtimeVisibleParameterAnnotations
public static AttributeMapper<RuntimeVisibleParameterAnnotationsAttribute> runtimeVisibleParameterAnnotations()RuntimeVisibleParameterAnnotations
属性のマッパーを返します。- 戻り値:
RuntimeVisibleParameterAnnotations
属性のマッパー
-
runtimeVisibleTypeAnnotations
public static AttributeMapper<RuntimeVisibleTypeAnnotationsAttribute> runtimeVisibleTypeAnnotations()RuntimeVisibleTypeAnnotations
属性のマッパーを返します。 これは、class
ファイル形式での「任意のインデックス」へのデータ依存性があります。- 戻り値:
RuntimeVisibleTypeAnnotations
属性のマッパー
-
signature
public static AttributeMapper<SignatureAttribute> signature()Signature
属性のマッパーを返します。- 戻り値:
Signature
属性のマッパー
-
sourceDebugExtension
public static AttributeMapper<SourceDebugExtensionAttribute> sourceDebugExtension()SourceDebugExtension
属性のマッパーを返します。 これには「データ依存関係がありません」があります。- 戻り値:
SourceDebugExtension
属性のマッパー
-
sourceFile
public static AttributeMapper<SourceFileAttribute> sourceFile()SourceFile
属性のマッパーを返します。- 戻り値:
SourceFile
属性のマッパー
-
sourceId
public static AttributeMapper<SourceIDAttribute> sourceId()SourceID
属性のマッパーを返します。 これはJDK固有の属性です。- 戻り値:
SourceID
属性のマッパー
-
stackMapTable
public static AttributeMapper<StackMapTableAttribute> stackMapTable()StackMapTable
属性のマッパーを返します。 これは、「ラベル」へのデータ依存性があります。- 戻り値:
StackMapTable
属性のマッパー
-
synthetic
public static AttributeMapper<SyntheticAttribute> synthetic()- 戻り値:
Synthetic
属性のマッパー
-