- すべてのスーパー・インタフェース:
AttributePREVIEW<SignatureAttributePREVIEW>
,ClassElementPREVIEW
,ClassFileElementPREVIEW
,FieldElementPREVIEW
,MethodElementPREVIEW
,WritableElementPREVIEW<SignatureAttributePREVIEW>
public sealed interface SignatureAttribute extends AttributePREVIEW<SignatureAttributePREVIEW>, ClassElementPREVIEW, MethodElementPREVIEW, FieldElementPREVIEW
SignatureAttribute
は、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
クラス、メソッドまたはフィールドに表示される
Signature
属性4.7.9をモデル化します。 対応するモデル・タイプのトラバース時に、ClassElement
PREVIEW、FieldElement
PREVIEWまたはMethodElement
PREVIEWとして提供されます。
この属性は、特定のロケーションにある複数のインスタンスを許可しません。 属性の後続の出現は、属性要素の作成時または変換時に優先されます。
この属性は、Java SEプラットフォーム・バージョン5.0で導入されました。
- 導入されたバージョン:
- 22
-
メソッドのサマリー
修飾子と型メソッド説明default ClassSignaturePREVIEW
シグネチャをクラス・シグネチャとして解析します。default MethodSignaturePREVIEW
署名をメソッド・シグネチャとして解析します。シグネチャをタイプ・シグネチャとして解析します。static SignatureAttributePREVIEW
of
(ClassSignaturePREVIEW classSignature) クラスのSignature
属性を返します。static SignatureAttributePREVIEW
Signature
属性を返します。static SignatureAttributePREVIEW
of
(MethodSignaturePREVIEW methodSignature) メソッドのSignature
属性を返します。static SignatureAttributePREVIEW
Signature
属性を返します。クラス、メソッドまたはフィールドのシグネチャを返します。インタフェースjava.lang.classfile.AttributePREVIEWで宣言されたメソッド
attributeMapper, attributeName
インタフェースjava.lang.classfile.WritableElementPREVIEWで宣言されたメソッド
writeTo
-
メソッドの詳細
-
signature
-
asClassSignature
-
asMethodSignature
-
asTypeSignature
-
of
static SignatureAttributePREVIEW of(ClassSignaturePREVIEW classSignature) クラスのSignature
属性を返します。- パラメータ:
classSignature
- シグネチャ- 戻り値:
- クラスの
Signature
属性
-
of
static SignatureAttributePREVIEW of(MethodSignaturePREVIEW methodSignature) メソッドのSignature
属性を返します。- パラメータ:
methodSignature
- シグネチャ- 戻り値:
- メソッドの
Signature
属性
-
of
static SignatureAttributePREVIEW of(SignaturePREVIEW signature) Signature
属性を返します。- パラメータ:
signature
- シグネチャ- 戻り値:
Signature
属性
-
of
static SignatureAttributePREVIEW of(Utf8EntryPREVIEW signature) Signature
属性を返します。- パラメータ:
signature
- シグネチャ- 戻り値:
Signature
属性
-
SignatureAttribute
を使用できます。