インタフェースClassFile.AttributeMapperOption
- すべてのスーパー・インタフェース:
ClassFile.OptionPREVIEW
public static sealed interface ClassFile.AttributeMapperOption extends ClassFile.OptionPREVIEW
AttributeMapperOption
は、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
カスタム属性の属性マッパーを記述するオプション。 デフォルトは、標準属性の処理のみです。
- 導入されたバージョン:
- 22
-
メソッドのサマリー
修飾子と型メソッド説明属性マッパーへの関数マッピング属性名を返します。カスタム属性の属性マッパーを記述するオプションを返します。
-
メソッドの詳細
-
of
static ClassFile.AttributeMapperOptionPREVIEW of(Function<Utf8EntryPREVIEW, AttributeMapperPREVIEW<?>> attributeMapper) カスタム属性の属性マッパーを記述するオプションを返します。- パラメータ:
attributeMapper
- 属性名を属性マッパーにマップする関数- 戻り値:
- カスタム属性の属性マッパーを説明するオプション
-
attributeMapper
Function<Utf8EntryPREVIEW,AttributeMapperPREVIEW<?>> attributeMapper()属性マッパーへの関数マッピング属性名を返します。- 戻り値:
- 属性名を属性マッパーにマップする関数
-
AttributeMapperOption
を使用できます。