- 型パラメータ:
A- 属性の型
- すべてのスーパー・インタフェース:
ClassFileElementPREVIEW,WritableElementPREVIEW<A>
- 既知のすべてのサブインタフェース:
AnnotationDefaultAttributePREVIEW,BootstrapMethodsAttributePREVIEW,CharacterRangeTableAttributePREVIEW,CodeAttributePREVIEW,CompilationIDAttributePREVIEW,ConstantValueAttributePREVIEW,DeprecatedAttributePREVIEW,EnclosingMethodAttributePREVIEW,ExceptionsAttributePREVIEW,InnerClassesAttributePREVIEW,LineNumberTableAttributePREVIEW,LocalVariableTableAttributePREVIEW,LocalVariableTypeTableAttributePREVIEW,MethodParametersAttributePREVIEW,ModuleAttributePREVIEW,ModuleHashesAttributePREVIEW,ModuleMainClassAttributePREVIEW,ModulePackagesAttributePREVIEW,ModuleResolutionAttributePREVIEW,ModuleTargetAttributePREVIEW,NestHostAttributePREVIEW,NestMembersAttributePREVIEW,PermittedSubclassesAttributePREVIEW,RecordAttributePREVIEW,RuntimeInvisibleAnnotationsAttributePREVIEW,RuntimeInvisibleParameterAnnotationsAttributePREVIEW,RuntimeInvisibleTypeAnnotationsAttributePREVIEW,RuntimeVisibleAnnotationsAttributePREVIEW,RuntimeVisibleParameterAnnotationsAttributePREVIEW,RuntimeVisibleTypeAnnotationsAttributePREVIEW,SignatureAttributePREVIEW,SourceDebugExtensionAttributePREVIEW,SourceFileAttributePREVIEW,SourceIDAttributePREVIEW,StackMapTableAttributePREVIEW,SyntheticAttributePREVIEW,UnknownAttributePREVIEW
- 既知のすべての実装クラス:
CustomAttributePREVIEW
public sealed interface Attribute<A extends AttributePREVIEW<A>> extends WritableElementPREVIEW<A> permits AnnotationDefaultAttributePREVIEW, BootstrapMethodsAttributePREVIEW, CharacterRangeTableAttributePREVIEW, CodeAttributePREVIEW, CompilationIDAttributePREVIEW, ConstantValueAttributePREVIEW, DeprecatedAttributePREVIEW, EnclosingMethodAttributePREVIEW, ExceptionsAttributePREVIEW, InnerClassesAttributePREVIEW, LineNumberTableAttributePREVIEW, LocalVariableTableAttributePREVIEW, LocalVariableTypeTableAttributePREVIEW, MethodParametersAttributePREVIEW, ModuleAttributePREVIEW, ModuleHashesAttributePREVIEW, ModuleMainClassAttributePREVIEW, ModulePackagesAttributePREVIEW, ModuleResolutionAttributePREVIEW, ModuleTargetAttributePREVIEW, NestHostAttributePREVIEW, NestMembersAttributePREVIEW, PermittedSubclassesAttributePREVIEW, RecordAttributePREVIEW, RuntimeInvisibleAnnotationsAttributePREVIEW, RuntimeInvisibleParameterAnnotationsAttributePREVIEW, RuntimeInvisibleTypeAnnotationsAttributePREVIEW, RuntimeVisibleAnnotationsAttributePREVIEW, RuntimeVisibleParameterAnnotationsAttributePREVIEW, RuntimeVisibleTypeAnnotationsAttributePREVIEW, SignatureAttributePREVIEW, SourceDebugExtensionAttributePREVIEW, SourceFileAttributePREVIEW, SourceIDAttributePREVIEW, StackMapTableAttributePREVIEW, SyntheticAttributePREVIEW, UnknownAttributePREVIEW, CustomAttributePREVIEW<T> (not exhaustive)
Attributeは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
クラス・ファイル属性4.7をモデル化します。 AttributePREVIEWのサブタイプの多くは、すべてではありませんが、
ClassElementPREVIEW、MethodElementPREVIEW、FieldElementPREVIEWまたはCodeElementPREVIEWを実装します。要素でもある属性は、対応するモデル・タイプの要素を横断するときに提供されます。 また、すべての属性には、対応するモデル・タイプからAttributedElement.findAttribute(AttributeMapper)PREVIEWを介して直接アクセスできます。 -
メソッドのサマリー
インタフェースjava.lang.classfile.WritableElementPREVIEWで宣言されたメソッド
writeTo
-
メソッドの詳細
-
attributeName
-
attributeMapper
AttributeMapperPREVIEW<A> attributeMapper()この属性に関連付けられているAttributeMapperPREVIEWを返します。- 戻り値:
- この属性に関連付けられている
AttributeMapperPREVIEW
-
Attributeを使用できます。