インタフェースAnnotationElement
public sealed interface AnnotationElement
JVMS 4.7.16で定義されている
annotation構 またはJVMS 4.7.20で定義されているtype_annotation構 内のelement_value_pairs表の要 と値のペアをモデル化します。
equalsメソッドを使用して、2つのAnnotationElementオブジェクトを比較する必要があります。
- Java Virtual Machine仕様を参照してく さい:
-
「4.7.16.1
element_value構 体」 - 導入されたバージョン:
- 24
- 関連 目:
-
メソッドのサマリー
修飾子と型メソッド説明name()要 名を返します。static AnnotationElementof(Utf8Entry name, AnnotationValue value) 要 と値のペアを返します。static AnnotationElementof(String name, AnnotationValue value) 要 と値のペアを返します。static AnnotationElementofAnnotation(String name, Annotation value) 注釈値要 の要 と値のペアを返します。static AnnotationElementofArray(String name, AnnotationValue... values) 配列値要 の要 と値のペアを返します。static AnnotationElementブール値要 の要 と値のペアを返します。static AnnotationElementバイト値要 の要 と値のペアを返します。static AnnotationElement文字値エレメントのエレメントと値のペアを返します。static AnnotationElementクラス値要 の要 と値のペアを返します。static AnnotationElement二重値要 の要 と値のペアを返します。static AnnotationElement浮動小数値の要 の要 と値のペアを返します。static AnnotationElementint値要 の要 と値のペアを返します。static AnnotationElement長い値を持つ要 の要 と値のペアを返します。static AnnotationElement短値の要 の要 と値のペアを返します。static AnnotationElement文字列値要 の要 と値のペアを返します。value()要 値を返します。
-
メソッドの詳細
-
name
-
value
-
of
static AnnotationElement of(Utf8Entry name, AnnotationValue value) 要 と値のペアを返します。- パラメータ:
name- キーの名前value- 関連付けられた値- 戻り値:
- 要 と値のペア
-
of
static AnnotationElement of(String name, AnnotationValue value) 要 と値のペアを返します。- パラメータ:
name- キーの名前value- 関連付けられた値- 戻り値:
- 要 と値のペア
-
ofClass
static AnnotationElement ofClass(String name, ClassDesc value) クラス値要 の要 と値のペアを返します。- パラメータ:
name- キーの名前value- 関連付けられた値- 戻り値:
- クラス値要 の要 と値のペア
- 関連 目:
-
ofString
static AnnotationElement ofString(String name, String value) 文字列値要 の要 と値のペアを返します。- パラメータ:
name- キーの名前value- 関連付けられた値- 戻り値:
- 文字列値要 の要 と値のペア
- 関連 目:
-
ofLong
static AnnotationElement ofLong(String name, long value) 長い値を持つ要 の要 と値のペアを返します。- パラメータ:
name- キーの名前value- 関連付けられた値- 戻り値:
- 長い値を持つ要 の要 と値のペア
- 関連 目:
-
ofInt
static AnnotationElement ofInt(String name, int value) int値要 の要 と値のペアを返します。- パラメータ:
name- キーの名前value- 関連付けられた値- 戻り値:
- int値要 の要 と値のペア
- 関連 目:
-
ofChar
static AnnotationElement ofChar(String name, char value) 文字値エレメントのエレメントと値のペアを返します。- パラメータ:
name- キーの名前value- 関連付けられた値- 戻り値:
- char値要 の要 と値のペア
- 関連 目:
-
ofShort
static AnnotationElement ofShort(String name, short value) 短値の要 の要 と値のペアを返します。- パラメータ:
name- キーの名前value- 関連付けられた値- 戻り値:
- 短値要 の要 と値のペア
- 関連 目:
-
ofByte
static AnnotationElement ofByte(String name, byte value) バイト値要 の要 と値のペアを返します。- パラメータ:
name- キーの名前value- 関連付けられた値- 戻り値:
- バイト値要 の要 と値のペア
- 関連 目:
-
ofBoolean
static AnnotationElement ofBoolean(String name, boolean value) ブール値要 の要 と値のペアを返します。- パラメータ:
name- キーの名前value- 関連付けられた値- 戻り値:
- ブール値要 の要 と値のペア
- 関連 目:
-
ofDouble
static AnnotationElement ofDouble(String name, double value) 二重値要 の要 と値のペアを返します。- パラメータ:
name- キーの名前value- 関連付けられた値- 戻り値:
- 二重値要 の要 と値のペア
- 関連 目:
-
ofFloat
static AnnotationElement ofFloat(String name, float value) 浮動小数値の要 の要 と値のペアを返します。- パラメータ:
name- キーの名前value- 関連付けられた値- 戻り値:
- float値要 の要 と値のペア
- 関連 目:
-
ofAnnotation
static AnnotationElement ofAnnotation(String name, Annotation value) 注釈値要 の要 と値のペアを返します。- パラメータ:
name- キーの名前value- 関連付けられた値- 戻り値:
- 注釈値要 の要 と値のペア
- 関連 目:
-
ofArray
static AnnotationElement ofArray(String name, AnnotationValue... values) 配列値要 の要 と値のペアを返します。- パラメータ:
name- キーの名前values- 関連付けられた値- 戻り値:
- 配列値要 の要 と値のペア
- 関連 目:
-