- すべてのスーパー・インタフェース:
ClassFileElementPREVIEW
,WritableElementPREVIEW<AnnotationElementPREVIEW>
public sealed interface AnnotationElement extends WritableElementPREVIEW<AnnotationElementPREVIEW>
AnnotationElement
は、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
注釈のキーと値のペアをモデル化します。
- 導入されたバージョン:
- 22
- 関連項目:
-
メソッドのサマリー
修飾子と型メソッド説明name()
要素名を返します。static AnnotationElementPREVIEW
of
(Utf8EntryPREVIEW name, AnnotationValuePREVIEW value) 注釈のキーと値のペアを返します。static AnnotationElementPREVIEW
of
(String name, AnnotationValuePREVIEW value) 注釈のキーと値のペアを返します。static AnnotationElementPREVIEW
ofAnnotation
(String name, AnnotationPREVIEW value) annotation-valued注釈の注釈キーと値のペアを返します。static AnnotationElementPREVIEW
ofArray
(String name, AnnotationValuePREVIEW... values) array-valued注釈の注釈キーと値のペアを返します。static AnnotationElementPREVIEW
boolean-valued注釈の注釈キーと値のペアを返します。static AnnotationElementPREVIEW
byte-valued注釈の注釈キーと値のペアを返します。static AnnotationElementPREVIEW
char-valued注釈の注釈キーと値のペアを返します。static AnnotationElementPREVIEW
class-valued注釈の注釈キーと値のペアを返します。static AnnotationElementPREVIEW
double-valued注釈の注釈キーと値のペアを返します。static AnnotationElementPREVIEW
float-valued注釈の注釈キーと値のペアを返します。static AnnotationElementPREVIEW
int-valued注釈の注釈キーと値のペアを返します。static AnnotationElementPREVIEW
long-valued注釈の注釈キーと値のペアを返します。static AnnotationElementPREVIEW
short-valued注釈の注釈キーと値のペアを返します。static AnnotationElementPREVIEW
string-valued注釈の注釈キーと値のペアを返します。value()
要素値を返します。インタフェースjava.lang.classfile.WritableElementPREVIEWで宣言されたメソッド
writeTo
-
メソッドの詳細
-
name
-
value
-
of
static AnnotationElementPREVIEW of(Utf8EntryPREVIEW name, AnnotationValuePREVIEW value) 注釈のキーと値のペアを返します。- パラメータ:
name
- キーの名前value
- 関連付けられた値- 戻り値:
- 注釈のキーと値のペア
-
of
static AnnotationElementPREVIEW of(String name, AnnotationValuePREVIEW value) 注釈のキーと値のペアを返します。- パラメータ:
name
- キーの名前value
- 関連付けられた値- 戻り値:
- 注釈のキーと値のペア
-
ofClass
static AnnotationElementPREVIEW ofClass(String name, ClassDesc value) class-valued注釈の注釈キーと値のペアを返します。- パラメータ:
name
- キーの名前value
- 関連付けられた値- 戻り値:
- class-valued注釈の注釈キーと値のペア
-
ofString
static AnnotationElementPREVIEW ofString(String name, String value) string-valued注釈の注釈キーと値のペアを返します。- パラメータ:
name
- キーの名前value
- 関連付けられた値- 戻り値:
- string-valued注釈の注釈キーと値のペア
-
ofLong
static AnnotationElementPREVIEW ofLong(String name, long value) long-valued注釈の注釈キーと値のペアを返します。- パラメータ:
name
- キーの名前value
- 関連付けられた値- 戻り値:
- long-valued注釈の注釈キーと値のペア
-
ofInt
static AnnotationElementPREVIEW ofInt(String name, int value) int-valued注釈の注釈キーと値のペアを返します。- パラメータ:
name
- キーの名前value
- 関連付けられた値- 戻り値:
- int-valued注釈の注釈キーと値のペア
-
ofChar
static AnnotationElementPREVIEW ofChar(String name, char value) char-valued注釈の注釈キーと値のペアを返します。- パラメータ:
name
- キーの名前value
- 関連付けられた値- 戻り値:
- char-valued注釈の注釈キーと値のペア
-
ofShort
static AnnotationElementPREVIEW ofShort(String name, short value) short-valued注釈の注釈キーと値のペアを返します。- パラメータ:
name
- キーの名前value
- 関連付けられた値- 戻り値:
- short-valued注釈の注釈キーと値のペア
-
ofByte
static AnnotationElementPREVIEW ofByte(String name, byte value) byte-valued注釈の注釈キーと値のペアを返します。- パラメータ:
name
- キーの名前value
- 関連付けられた値- 戻り値:
- byte-valued注釈の注釈キーと値のペア
-
ofBoolean
static AnnotationElementPREVIEW ofBoolean(String name, boolean value) boolean-valued注釈の注釈キーと値のペアを返します。- パラメータ:
name
- キーの名前value
- 関連付けられた値- 戻り値:
- boolean-valued注釈の注釈キーと値のペア
-
ofDouble
static AnnotationElementPREVIEW ofDouble(String name, double value) double-valued注釈の注釈キーと値のペアを返します。- パラメータ:
name
- キーの名前value
- 関連付けられた値- 戻り値:
- double-valued注釈の注釈キーと値のペア
-
ofFloat
static AnnotationElementPREVIEW ofFloat(String name, float value) float-valued注釈の注釈キーと値のペアを返します。- パラメータ:
name
- キーの名前value
- 関連付けられた値- 戻り値:
- float-valued注釈の注釈キーと値のペア
-
ofAnnotation
static AnnotationElementPREVIEW ofAnnotation(String name, AnnotationPREVIEW value) annotation-valued注釈の注釈キーと値のペアを返します。- パラメータ:
name
- キーの名前value
- 関連付けられた値- 戻り値:
- annotation-valued注釈の注釈キーと値のペア
-
ofArray
static AnnotationElementPREVIEW ofArray(String name, AnnotationValuePREVIEW... values) array-valued注釈の注釈キーと値のペアを返します。- パラメータ:
name
- キーの名前values
- 関連付けられた値- 戻り値:
- array-valued注釈の注釈キーと値のペア
-
AnnotationElement
を使用できます。