类的用途
java.lang.constant.DynamicCallSiteDesc
使用 DynamicCallSiteDesc 的包
包
描述
代表 nominal descriptors 运行时实体(例如类或方法句柄)和类文件实体(例如常量池条目或
invokedynamic 调用站点)的类和接口。
-
DynamicCallSiteDesc 在 java.lang.constant 中的用法
修饰符和类型方法描述static DynamicCallSiteDescDynamicCallSiteDesc.of(DirectMethodHandleDesc bootstrapMethod, MethodTypeDesc invocationType) 为invokedynamic调用站点创建标称描述符,其引导方法没有静态参数且名称参数为ConstantDescs.DEFAULT_NAME。static DynamicCallSiteDescDynamicCallSiteDesc.of(DirectMethodHandleDesc bootstrapMethod, String invocationName, MethodTypeDesc invocationType) 为引导方法没有静态参数的invokedynamic调用站点创建标称描述符。static DynamicCallSiteDescDynamicCallSiteDesc.of(DirectMethodHandleDesc bootstrapMethod, String invocationName, MethodTypeDesc invocationType, ConstantDesc... bootstrapArgs) 为invokedynamic呼叫站点创建标称描述符。DynamicCallSiteDesc.withArgs(ConstantDesc... bootstrapArgs) 返回invokedynamic调用站点的标称描述符,其引导方法、名称和调用类型与此相同,但具有指定的引导参数。DynamicCallSiteDesc.withNameAndType(String invocationName, MethodTypeDesc invocationType) 返回invokedynamic调用站点的标称描述符,其 bootstrap 和 bootstrap 参数与此相同,但具有指定的 invocationName 和 invocation invocationType