クラスjava.lang.constant.DynamicCallSiteDescの
使用
DynamicCallSiteDescを使用するパッケージ
パッケージ
説明
クラスやメソッド・ハンドルなどのランタイム・エンティティ用に「名目記述子」を表すクラスおよびインタフェース、および定数プール・エントリや
invokedynamicコール・サイトなどのクラス・ファイル・エンティティ用に「名目記述子」を表すクラスおよびインタフェース。-
java.lang.constantでのDynamicCallSiteDescの使用
修飾子と型メソッド説明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サイトの名目記述子を作成します。DynamicCallSiteDesc.withArgs(ConstantDesc... bootstrapArgs) ブートストラップ・メソッド、名前および呼出しタイプがこれと同じで、指定されたブートストラップ引数を持つinvokedynamicコール・サイトの名目記述子を返します。DynamicCallSiteDesc.withNameAndType(String invocationName, MethodTypeDesc invocationType) ブートストラップおよびブートストラップ引数がこれと同じですが、指定されたinvocationNameと呼出しinvocationTypeを使用して、invokedynamicコール・サイトの名目記述子を返します