Top Description Methods
java.lang.classfile.constantpool

public sealed Interface InvokeDynamicEntry

extends DynamicConstantPoolEntry
Known Direct Implementers
jdk.internal.classfile.impl.AbstractPoolEntry.InvokeDynamicEntryImpl
Annotations
@PreviewFeature
feature:CLASSFILE_API
Imports
java.lang.constant.ConstantDesc, .DynamicCallSiteDesc, .MethodTypeDesc, jdk.internal.classfile.impl.AbstractPoolEntry, .Util, jdk.internal.javac.PreviewFeature

Preview

Second Preview of ClassFile API (JEP 466).

Programs can only use InvokeDynamicEntry when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.

Models a constant pool entry for a dynamic call site.
Since
22
Java Virtual Machine Specification
4.4.10 The CONSTANT_Dynamic_info and CONSTANT_InvokeDynamic_info Structures

Method Summary

Modifier and TypeMethod and Description
public default DynamicCallSiteDesc

Returns:

a symbolic descriptor for the dynamic call site
asSymbol
()

Returns a symbolic descriptor for the dynamic call site.

public default MethodTypeDesc

Returns:

a symbolic descriptor for the call site's invocation type
typeSymbol
()

Returns a symbolic descriptor for the call site's invocation type.

Inherited from java.lang.classfile.constantpool.DynamicConstantPoolEntry:
bootstrapbootstrapMethodIndexnamenameAndTypetype

Method Detail

asSymbolback to summary
public default DynamicCallSiteDesc asSymbol()

Returns a symbolic descriptor for the dynamic call site.

Returns:DynamicCallSiteDesc

a symbolic descriptor for the dynamic call site

typeSymbolback to summary
public default MethodTypeDesc typeSymbol()

Returns a symbolic descriptor for the call site's invocation type.

Returns:MethodTypeDesc

a symbolic descriptor for the call site's invocation type