モジュール java.base
クラスCustomAttribute<T extends CustomAttributePREVIEW<T>>
java.lang.Object
java.lang.classfile.CustomAttribute<T>
- 型パラメータ:
T- カスタム属性タイプ
- すべての実装されたインタフェース:
AttributePREVIEW<T>,ClassElementPREVIEW,ClassFileElementPREVIEW,CodeElementPREVIEW,FieldElementPREVIEW,MethodElementPREVIEW,WritableElementPREVIEW<T>
public abstract non-sealed class CustomAttribute<T extends CustomAttributePREVIEW<T>> extends Object implements AttributePREVIEW<T>, CodeElementPREVIEW, ClassElementPREVIEW, MethodElementPREVIEW, FieldElementPREVIEW
CustomAttributeは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
クラス・ファイルの非標準属性をモデル化します。 クライアントは、このクラスを拡張して非標準属性に実装クラスを提供し、クラス・ファイル形式とCustomAttributePREVIEW表現を仲介する
AttributeMapperPREVIEWを提供する必要があります。 - 導入されたバージョン:
- 22
-
コンストラクタのサマリー
コンストラクタ修飾子コンストラクタ説明protectedCustomAttribute(AttributeMapperPREVIEW<T> mapper) CustomAttributePREVIEWを作成します。 -
メソッドのサマリー
修飾子と型メソッド説明final AttributeMapperPREVIEW<T> この属性に関連付けられているAttributeMapperPREVIEWを返します。final String属性の名前を返します。final void指定されたライターに要素を書き込みます
-
コンストラクタの詳細
-
CustomAttribute
protected CustomAttribute(AttributeMapperPREVIEW<T> mapper) CustomAttributePREVIEWを作成します。- パラメータ:
mapper- 属性マッパー
-
-
メソッドの詳細
-
attributeMapper
public final AttributeMapperPREVIEW<T> attributeMapper()インタフェースからコピーされた説明:Attributeこの属性に関連付けられているAttributeMapperPREVIEWを返します。- 定義:
- インタフェース
AttributePREVIEW<T extends CustomAttributePREVIEW<T>>内のattributeMapper - 戻り値:
- この属性に関連付けられている
AttributeMapperPREVIEW
-
attributeName
public final String attributeName()インタフェースからコピーされた説明:Attribute属性の名前を返します。- 定義:
- インタフェース
AttributePREVIEW<T extends CustomAttributePREVIEW<T>>内のattributeName - 戻り値:
- 属性の名前
-
writeTo
インタフェース:WritableElementからコピーされた説明指定されたライターに要素を書き込みます- 定義:
- インタフェース
WritableElementPREVIEW<T extends CustomAttributePREVIEW<T>>内のwriteTo - パラメータ:
buf- ライター
-
CustomAttributeを使用できます。