クラスVarHandle.VarHandleDesc
java.lang.Object
java.lang.constant.DynamicConstantDesc<VarHandle>
java.lang.invoke.VarHandle.VarHandleDesc
- すべての実装されたインタフェース:
ConstantDesc
- 含まれているクラス:
VarHandle
public static final class VarHandle.VarHandleDesc extends DynamicConstantDesc<VarHandle>
- 導入されたバージョン:
- 12
-
メソッドのサマリー
修飾子と型メソッド説明static VarHandle.VarHandleDesc配列型のVarHandleに対応するVarHandle.VarHandleDescを返します。static VarHandle.VarHandleDescインスタンス・フィールドについて、VarHandleに対応するVarHandle.VarHandleDescを返します。static VarHandle.VarHandleDescofStaticField(ClassDesc declaringClass, String name, ClassDesc fieldType) 静的フィールドについてVarHandleに対応するVarHandle.VarHandleDescを返します。toString()この定数の説明のコンパクトなテキストを返します。varType()この記述子で説明されている変数の型をClassDescで記述します。クラスで宣言されたメソッド DynamicConstantDesc
bootstrapArgs, bootstrapArgsList, bootstrapMethod, constantName, constantType, equals, hashCode, of, of, ofCanonical, ofNamed, resolveConstantDesc修飾子と型メソッド説明この定数のブートストラップ引数を返します。不変Listとして、この定数のブートストラップ引数を返します。この定数のブートストラップ・メソッドを記述するMethodHandleDescを返します。この定数に対してLDCのNameAndTypeオペランドに出現する名前を戻します。この定数に対してLDCのNameAndTypeオペランドに表示される型を示すClassDescを返します。final boolean等価性のために、指定されたオブジェクトをこの記述子と比較します。final inthashCode()このオブジェクトに対するハッシュ・コード値を返します。static <T> DynamicConstantDesc<T> of(DirectMethodHandleDesc bootstrapMethod) ブートストラップが静的引数を持たない動的定数の名目記述子を返します。この値は、nameパラメータがConstantDescs.DEFAULT_NAMEで、typeパラメータは常にブートストラップ・メソッドの戻り型と同じです。static <T> DynamicConstantDesc<T> of(DirectMethodHandleDesc bootstrapMethod, ConstantDesc... bootstrapArgs) 名前パラメータがConstantDescs.DEFAULT_NAMEで、typeパラメータが常にブートストラップ・メソッドの戻り型と同じである動的定数の名目記述子を返します。static <T> ConstantDescofCanonical(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc[] bootstrapArgs) 定数ブートストラップが既知の単一記述子で、より具体的な記述子タイプ(例: ClassDesc)が使用可能な場合は、動的定数の名目記述子を返し、より具体的な型に変換します。static <T> DynamicConstantDesc<T> ofNamed(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc... bootstrapArgs) 動的定数の名目記述子を返します。クラスオブジェクトで宣言されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, wait, wait修飾子と型メソッド説明protected Objectclone()このオブジェクトのコピーを作成して、返します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
メソッドの詳細
-
ofField
public static VarHandle.VarHandleDesc ofField(ClassDesc declaringClass, String name, ClassDesc fieldType) インスタンス・フィールドについて、VarHandleに対応するVarHandle.VarHandleDescを返します。- パラメータ:
declaringClass- フィールドvarハンドルの場合の宣言クラスを説明するClassDescname- フィールドの未修飾名fieldType- フィールドのタイプについて説明するClassDesc- 戻り値:
- VarHandle.VarHandleDesc
- スロー:
NullPointerException- 引数が1つでもnullの場合- Java Virtual Machine仕様を参照してください:
-
4.2.2 未修飾名
-
ofStaticField
public static VarHandle.VarHandleDesc ofStaticField(ClassDesc declaringClass, String name, ClassDesc fieldType) 静的フィールドについてVarHandleに対応するVarHandle.VarHandleDescを返します。- パラメータ:
declaringClass- フィールドvarハンドルの場合の宣言クラスを説明するClassDescname- フィールドの未修飾名fieldType- フィールドのタイプについて説明するClassDesc- 戻り値:
- VarHandle.VarHandleDesc
- スロー:
NullPointerException- 引数が1つでもnullの場合- Java Virtual Machine仕様を参照してください:
-
4.2.2 未修飾名
-
ofArray
public static VarHandle.VarHandleDesc ofArray(ClassDesc arrayClass) 配列型のVarHandleに対応するVarHandle.VarHandleDescを返します。- パラメータ:
arrayClass- 配列のタイプについて説明するClassDesc- 戻り値:
- VarHandle.VarHandleDesc
- スロー:
NullPointerException- 引数が1つでもnullの場合
-
varType
-
toString
-