- すべてのスーパー・インタフェース:
ClassFileElementPREVIEW,WritableElementPREVIEW<AnnotationValuePREVIEW>
- 既知のすべてのサブインタフェース:
AnnotationValue.OfAnnotationPREVIEW,AnnotationValue.OfArrayPREVIEW,AnnotationValue.OfBooleanPREVIEW,AnnotationValue.OfBytePREVIEW,AnnotationValue.OfCharacterPREVIEW,AnnotationValue.OfClassPREVIEW,AnnotationValue.OfConstantPREVIEW,AnnotationValue.OfDoublePREVIEW,AnnotationValue.OfEnumPREVIEW,AnnotationValue.OfFloatPREVIEW,AnnotationValue.OfIntegerPREVIEW,AnnotationValue.OfLongPREVIEW,AnnotationValue.OfShortPREVIEW,AnnotationValue.OfStringPREVIEW
public sealed interface AnnotationValue extends WritableElementPREVIEW<AnnotationValuePREVIEW> permits AnnotationValue.OfAnnotationPREVIEW, AnnotationValue.OfArrayPREVIEW, AnnotationValue.OfConstantPREVIEW, AnnotationValue.OfClassPREVIEW, AnnotationValue.OfEnumPREVIEW
AnnotationValueは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
注釈のキーと値のペアの値をモデル化します。
-
ネストされたクラスのサマリー
ネストされたクラス修飾子と型インタフェース説明static interfacePreview.annotation-valued要素をモデル化します。static interfacePreview.array-valued要素をモデル化するstatic interfacePreview.constant-valued要素をモデル化するstatic interfacePreview.constant-valued要素をモデル化するstatic interfacePreview.constant-valued要素をモデル化するstatic interfacePreview.class-valued要素をモデル化します。static interfacePreview.constant-valued要素をモデル化するstatic interfacePreview.constant-valued要素をモデル化するstatic interfacePreview.enum-valued要素をモデル化するstatic interfacePreview.constant-valued要素をモデル化するstatic interfacePreview.constant-valued要素をモデル化するstatic interfacePreview.constant-valued要素をモデル化するstatic interfacePreview.constant-valued要素をモデル化するstatic interfacePreview.constant-valued要素をモデル化する -
メソッドのサマリー
修飾子と型メソッド説明static AnnotationValuePREVIEW注釈要素を返します。ofAnnotation(AnnotationPREVIEW value) annotation-valued要素の注釈要素を返します。ofArray(AnnotationValuePREVIEW... values) array-valued要素の注釈要素を返します。ofArray(List<AnnotationValuePREVIEW> values) array-valued要素の注釈要素を返します。ofBoolean(boolean value) boolean-valued要素の注釈要素を返します。ofBoolean(IntegerEntryPREVIEW value) boolean-valued要素の注釈要素を返します。ofByte(byte value) byte-valued要素の注釈要素を返します。ofByte(IntegerEntryPREVIEW value) byte-valued要素の注釈要素を返します。ofChar(char value) char-valued要素の注釈要素を返します。ofChar(IntegerEntryPREVIEW value) char-valued要素の注釈要素を返します。class-valued要素の注釈要素を返します。class-valued要素の注釈要素を返します。ofDouble(double value) double-valued要素の注釈要素を返します。ofDouble(DoubleEntryPREVIEW value) double-valued要素の注釈要素を返します。enum-valued要素の注釈要素を返します。enum-valued要素の注釈要素を返します。ofFloat(float value) float-valued要素の注釈要素を返します。ofFloat(FloatEntryPREVIEW value) float-valued要素の注釈要素を返します。ofInt(int value) int-valued要素の注釈要素を返します。ofInt(IntegerEntryPREVIEW value) int-valued要素の注釈要素を返します。ofLong(long value) long-valued要素の注釈要素を返します。long-valued要素の注釈要素を返します。ofShort(short value) short-valued要素の注釈要素を返します。ofShort(IntegerEntryPREVIEW value) short-valued要素の注釈要素を返します。string-valued要素の注釈要素を返します。string-valued要素の注釈要素を返します。chartag()4.7.16.1に従って、このタイプのタグ文字を返します。インタフェースjava.lang.classfile.WritableElementPREVIEWで宣言されたメソッド
writeTo
-
メソッドの詳細
-
tag
-
ofEnum
-
ofEnum
static AnnotationValue.OfEnumPREVIEW ofEnum(ClassDesc className, String constantName) enum-valued要素の注釈要素を返します。- パラメータ:
className- enumクラスの名前constantName- 列挙定数の名前- 戻り値:
- enum-valued要素の注釈要素
-
ofClass
static AnnotationValue.OfClassPREVIEW ofClass(Utf8EntryPREVIEW className) class-valued要素の注釈要素を返します。- パラメータ:
className- enumクラスの名前- 戻り値:
- class-valued要素の注釈要素
-
ofClass
static AnnotationValue.OfClassPREVIEW ofClass(ClassDesc className) class-valued要素の注釈要素を返します。- パラメータ:
className- enumクラスの名前- 戻り値:
- class-valued要素の注釈要素
-
ofString
static AnnotationValue.OfConstantPREVIEW ofString(Utf8EntryPREVIEW value) string-valued要素の注釈要素を返します。- パラメータ:
value- string値- 戻り値:
- string-valued要素の注釈要素
-
ofString
static AnnotationValue.OfConstantPREVIEW ofString(String value) string-valued要素の注釈要素を返します。- パラメータ:
value- string値- 戻り値:
- string-valued要素の注釈要素
-
ofDouble
static AnnotationValue.OfConstantPREVIEW ofDouble(DoubleEntryPREVIEW value) double-valued要素の注釈要素を返します。- パラメータ:
value- double値- 戻り値:
- double-valued要素の注釈要素
-
ofDouble
static AnnotationValue.OfConstantPREVIEW ofDouble(double value) double-valued要素の注釈要素を返します。- パラメータ:
value- double値- 戻り値:
- double-valued要素の注釈要素
-
ofFloat
static AnnotationValue.OfConstantPREVIEW ofFloat(FloatEntryPREVIEW value) float-valued要素の注釈要素を返します。- パラメータ:
value- float値- 戻り値:
- float-valued要素の注釈要素
-
ofFloat
static AnnotationValue.OfConstantPREVIEW ofFloat(float value) float-valued要素の注釈要素を返します。- パラメータ:
value- float値- 戻り値:
- float-valued要素の注釈要素
-
ofLong
static AnnotationValue.OfConstantPREVIEW ofLong(LongEntryPREVIEW value) long-valued要素の注釈要素を返します。- パラメータ:
value- long値- 戻り値:
- long-valued要素の注釈要素
-
ofLong
static AnnotationValue.OfConstantPREVIEW ofLong(long value) long-valued要素の注釈要素を返します。- パラメータ:
value- long値- 戻り値:
- long-valued要素の注釈要素
-
ofInt
static AnnotationValue.OfConstantPREVIEW ofInt(IntegerEntryPREVIEW value) int-valued要素の注釈要素を返します。- パラメータ:
value- int値- 戻り値:
- int-valued要素の注釈要素
-
ofInt
static AnnotationValue.OfConstantPREVIEW ofInt(int value) int-valued要素の注釈要素を返します。- パラメータ:
value- int値- 戻り値:
- int-valued要素の注釈要素
-
ofShort
static AnnotationValue.OfConstantPREVIEW ofShort(IntegerEntryPREVIEW value) short-valued要素の注釈要素を返します。- パラメータ:
value- short値- 戻り値:
- short-valued要素の注釈要素
-
ofShort
static AnnotationValue.OfConstantPREVIEW ofShort(short value) short-valued要素の注釈要素を返します。- パラメータ:
value- short値- 戻り値:
- short-valued要素の注釈要素
-
ofChar
static AnnotationValue.OfConstantPREVIEW ofChar(IntegerEntryPREVIEW value) char-valued要素の注釈要素を返します。- パラメータ:
value- char値- 戻り値:
- char-valued要素の注釈要素
-
ofChar
static AnnotationValue.OfConstantPREVIEW ofChar(char value) char-valued要素の注釈要素を返します。- パラメータ:
value- char値- 戻り値:
- char-valued要素の注釈要素
-
ofByte
static AnnotationValue.OfConstantPREVIEW ofByte(IntegerEntryPREVIEW value) byte-valued要素の注釈要素を返します。- パラメータ:
value- byte値- 戻り値:
- byte-valued要素の注釈要素
-
ofByte
static AnnotationValue.OfConstantPREVIEW ofByte(byte value) byte-valued要素の注釈要素を返します。- パラメータ:
value- byte値- 戻り値:
- byte-valued要素の注釈要素
-
ofBoolean
static AnnotationValue.OfConstantPREVIEW ofBoolean(IntegerEntryPREVIEW value) boolean-valued要素の注釈要素を返します。- パラメータ:
value- ブール値- 戻り値:
- boolean-valued要素の注釈要素
-
ofBoolean
static AnnotationValue.OfConstantPREVIEW ofBoolean(boolean value) boolean-valued要素の注釈要素を返します。- パラメータ:
value- ブール値- 戻り値:
- boolean-valued要素の注釈要素
-
ofAnnotation
static AnnotationValue.OfAnnotationPREVIEW ofAnnotation(AnnotationPREVIEW value) annotation-valued要素の注釈要素を返します。- パラメータ:
value- annotation値- 戻り値:
- annotation-valued要素の注釈要素
-
ofArray
static AnnotationValue.OfArrayPREVIEW ofArray(List<AnnotationValuePREVIEW> values) array-valued要素の注釈要素を返します。- パラメータ:
values- values- 戻り値:
- array-valued要素の注釈要素
-
ofArray
static AnnotationValue.OfArrayPREVIEW ofArray(AnnotationValuePREVIEW... values) array-valued要素の注釈要素を返します。- パラメータ:
values- values- 戻り値:
- array-valued要素の注釈要素
-
of
static AnnotationValuePREVIEW of(Object value) 注釈要素を返します。valueパラメータは、プリミティブ、プリミティブのラッパー、文字列、ClassDesc、列挙定数、またはこれらの配列のいずれかである必要があります。- パラメータ:
value- 注釈値- 戻り値:
- 注釈要素
- 例外:
IllegalArgumentException-valueパラメータがプリミティブ、プリミティブのラッパー、文字列、ClassDesc、列挙定数、またはこれらの配列でない場合。
-
AnnotationValueを使用できます。