クラスAttributes
java.lang.Object
java.lang.classfile.Attributes
public final class Attributes extends Object
事前定義済の(JVMS 4.7)およびJDK固有の非標準属性の属性マッパー。
特に指定がないかぎり、各マッパーは、このクラスのメソッドによって戻されます:
- JDK固有のものではなく、JVMSで事前定義されています
- 同じ構造で「複数の属性インスタンス」を許可しません
- 属性は、「定数プール」に「データ依存性」を持ちます。
- 導入されたバージョン:
- 24
- 関連項目:
-
フィールドのサマリー
フィールド修飾子と型フィールド説明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属性のマッパーを返します。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属性のマッパーを返します。クラスオブジェクトで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait修飾子と型メソッド説明protected Objectclone()このオブジェクトのコピーを作成して、返します。booleanこのオブジェクトと他のオブジェクトが等しいかどうかを示します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。inthashCode()このオブジェクトに対するハッシュ・コード値を返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。toString()オブジェクトの文字列表現を返します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
フィールド詳細
-
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属性のマッパー
-