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で記述します。クラスjava.lang.constant.DynamicConstantDescで宣言されたメソッド
bootstrapArgs, bootstrapArgsList, bootstrapMethod, constantName, constantType, equals, hashCode, of, of, ofCanonical, ofNamed, resolveConstantDesc
-
メソッドの詳細
-
ofField
public static VarHandle.VarHandleDesc ofField(ClassDesc declaringClass, String name, ClassDesc fieldType) インスタンス・フィールドについて、VarHandleに対応するVarHandle.VarHandleDescを返します。- パラメータ:
name- フィールドの未修飾名declaringClass- フィールドvarハンドルの場合の宣言クラスを説明するClassDescfieldType- フィールドのタイプについて説明するClassDesc- 戻り値:
- VarHandle.VarHandleDesc
- throws:
NullPointerException- 引数が1つでもnullの場合- Java Virtual Machine仕様を参照してください:
-
4.2.2 未修飾名
-
ofStaticField
public static VarHandle.VarHandleDesc ofStaticField(ClassDesc declaringClass, String name, ClassDesc fieldType) 静的フィールドについてVarHandleに対応するVarHandle.VarHandleDescを返します。- パラメータ:
name- フィールドの未修飾名declaringClass- フィールドvarハンドルの場合の宣言クラスを説明するClassDescfieldType- フィールドのタイプについて説明するClassDesc- 戻り値:
- VarHandle.VarHandleDesc
- throws:
NullPointerException- 引数が1つでもnullの場合- Java Virtual Machine仕様を参照してください:
-
4.2.2 未修飾名
-
ofArray
public static VarHandle.VarHandleDesc ofArray(ClassDesc arrayClass) 配列型のVarHandleに対応するVarHandle.VarHandleDescを返します。- パラメータ:
arrayClass- 配列のタイプについて説明するClassDesc- 戻り値:
- VarHandle.VarHandleDesc
- throws:
NullPointerException- 引数が1つでもnullの場合
-
varType
public ClassDesc varType()この記述子で説明されている変数の型をClassDescで記述します。- 戻り値:
- 変数の型
-
toString
public String toString()この定数の説明のコンパクトなテキストを返します。 VarHandleフィールドの場合は、フィールドの所有者、名前およびタイプと、静的かどうか、つまり配列VarHandleの場合はコンポーネント・タイプの名前を含めます。- オーバーライド:
- クラス
DynamicConstantDesc<VarHandle>のtoString - 戻り値:
- この記述子のコンパクト・テキスト形式の説明
-