インタフェースjava.lang.constant.DirectMethodHandleDescの
使用
DirectMethodHandleDescを使用するパッケージ
パッケージ
説明
java.lang.classfileライブラリの定数プール・エントリを記述するインタフェースを提供します。java.lang.classfileライブラリのコード手順を説明するインタフェースを提供します。クラスやメソッド・ハンドルなどのランタイム・エンティティ用に「名目記述子」を表すクラスおよびインタフェース、および定数プール・エントリや
invokedynamicコール・サイトなどのクラス・ファイル・エンティティ用に「名目記述子」を表すクラスおよびインタフェース。-
java.lang.classfile.constantpoolでのDirectMethodHandleDescの使用
型DirectMethodHandleDescのパラメータを持つjava.lang.classfile.constantpoolのメソッド修飾子と型メソッド説明default BootstrapMethodEntryConstantPoolBuilder.bsmEntry(DirectMethodHandleDesc methodReference, List<ConstantDesc> arguments) 指定されたブートストラップ・メソッドおよび引数を記述するBootstrapMethodEntryを返します。default MethodHandleEntryConstantPoolBuilder.methodHandleEntry(DirectMethodHandleDesc descriptor) 指定されたDirectMethodHandleDescと同じメソッド・ハンドルを記述するMethodHandleEntryを返します。 -
java.lang.classfile.instructionでのDirectMethodHandleDescの使用
修飾子と型メソッド説明default DirectMethodHandleDescInvokeDynamicInstruction.bootstrapMethod()コール・サイトのブートストラップ・メソッドを返します。 -
java.lang.constantでのDirectMethodHandleDescの使用
DirectMethodHandleDescとして宣言されたjava.lang.constantのフィールド修飾子と型フィールド説明static final DirectMethodHandleDescConstantDescs.BSM_CLASS_DATAstatic final DirectMethodHandleDescConstantDescs.BSM_CLASS_DATA_ATstatic final DirectMethodHandleDescConstantDescs.BSM_ENUM_CONSTANTstatic final DirectMethodHandleDescConstantDescs.BSM_EXPLICIT_CASTstatic final DirectMethodHandleDescConstantDescs.BSM_GET_STATIC_FINALstatic final DirectMethodHandleDescConstantDescs.BSM_INVOKEstatic final DirectMethodHandleDescConstantDescs.BSM_NULL_CONSTANTstatic final DirectMethodHandleDescConstantDescs.BSM_PRIMITIVE_CLASSstatic final DirectMethodHandleDescConstantDescs.BSM_VARHANDLE_ARRAYstatic final DirectMethodHandleDescConstantDescs.BSM_VARHANDLE_FIELDstatic final DirectMethodHandleDescConstantDescs.BSM_VARHANDLE_STATIC_FIELD修飾子と型メソッド説明DynamicConstantDesc.bootstrapMethod()この定数のブートストラップ・メソッドを記述するMethodHandleDescを返します。static DirectMethodHandleDescMethodHandleDesc.of(DirectMethodHandleDesc.Kind kind, ClassDesc owner, String name, String lookupDescriptor) 宣言されたメソッドの呼出し、コンストラクタの呼出し、またはフィールドへのアクセスに対応するMethodHandleDescを作成します。static DirectMethodHandleDescConstantDescs.ofCallsiteBootstrap(ClassDesc owner, String name, ClassDesc returnType, ClassDesc... paramTypes) invokedynamic呼出しサイトのブートストラップ・メソッドに対応するMethodHandleDescを返します。これは先頭のパラメータ・タイプがLookup、String、MethodTypeである静的メソッドです。static DirectMethodHandleDescConstantDescs.ofConstantBootstrap(ClassDesc owner, String name, ClassDesc returnType, ClassDesc... paramTypes) 動的定数に対するブートストラップ・メソッドに対応するMethodHandleDescを返します。これは先行引数がLookup、String、Classであるstaticメソッドです。static DirectMethodHandleDescMethodHandleDesc.ofConstructor(ClassDesc owner, ClassDesc... paramTypes) コンストラクタの呼出しに対応するMethodHandleDescを返しますstatic DirectMethodHandleDescMethodHandleDesc.ofField(DirectMethodHandleDesc.Kind kind, ClassDesc owner, String fieldName, ClassDesc fieldType) フィールドにアクセスするメソッド・ハンドルに対応するMethodHandleDescを作成します。static DirectMethodHandleDescMethodHandleDesc.ofMethod(DirectMethodHandleDesc.Kind kind, ClassDesc owner, String name, MethodTypeDesc lookupMethodType) 宣言されたメソッドまたはコンストラクタの呼出しに対応するMethodHandleDescを作成します。型DirectMethodHandleDescのパラメータを持つjava.lang.constantのメソッド修飾子と型メソッド説明static DynamicCallSiteDescDynamicCallSiteDesc.of(DirectMethodHandleDesc bootstrapMethod, MethodTypeDesc invocationType) ブートストラップ・メソッドに静的引数がなく、nameパラメータがConstantDescs.DEFAULT_NAMEのinvokedynamicコール・サイトに名目記述子を作成します。static DynamicCallSiteDescDynamicCallSiteDesc.of(DirectMethodHandleDesc bootstrapMethod, String invocationName, MethodTypeDesc invocationType) ブートストラップ・メソッドに静的な引数がないinvokedynamicコール・サイトの名目記述子を作成します。static DynamicCallSiteDescDynamicCallSiteDesc.of(DirectMethodHandleDesc bootstrapMethod, String invocationName, MethodTypeDesc invocationType, ConstantDesc... bootstrapArgs) invokedynamiccallサイトの名目記述子を作成します。static <T> DynamicConstantDesc<T> DynamicConstantDesc.of(DirectMethodHandleDesc bootstrapMethod) ブートストラップが静的引数を持たない動的定数の名目記述子を返します。この値は、nameパラメータがConstantDescs.DEFAULT_NAMEで、typeパラメータは常にブートストラップ・メソッドの戻り型と同じです。static <T> DynamicConstantDesc<T> DynamicConstantDesc.of(DirectMethodHandleDesc bootstrapMethod, ConstantDesc... bootstrapArgs) 名前パラメータがConstantDescs.DEFAULT_NAMEで、typeパラメータが常にブートストラップ・メソッドの戻り型と同じである動的定数の名目記述子を返します。static <T> ConstantDescDynamicConstantDesc.ofCanonical(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc[] bootstrapArgs) 定数ブートストラップが既知の単一記述子で、より具体的な記述子タイプ(例: ClassDesc)が使用可能な場合は、動的定数の名目記述子を返し、より具体的な型に変換します。static <T> DynamicConstantDesc<T> DynamicConstantDesc.ofNamed(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc... bootstrapArgs) 動的定数の名目記述子を返します。型DirectMethodHandleDescのパラメータを持つjava.lang.constantのコンストラクタ修飾子コンストラクタ説明protectedDynamicConstantDesc(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc... bootstrapArgs) 動的定数の名目記述子を作成します。