- All Superinterfaces:
ClassFileElementPREVIEW
,CodeElementPREVIEW
,InstructionPREVIEW
InvokeDynamicInstruction
is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models an
invokedynamic
instruction in the code
array of a
Code
attribute. Delivered as a CodeElement
PREVIEW when traversing
the elements of a CodeModel
PREVIEW.- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptiondefault List
<ConstantDesc> Returns the bootstrap arguments of the call site.default DirectMethodHandleDesc
Returns the bootstrap method of the call site.Returns anInvokeDynamicEntry
PREVIEW describing the call site.name()
Returns the invocation name of the call site.of
(InvokeDynamicEntryPREVIEW invokedynamic) Returns an invokedynamic instruction.type()
Returns the invocation type of the call site.default MethodTypeDesc
Returns the invocation type of the call site, as a symbolic descriptor.Methods declared in interface java.lang.classfile.InstructionPREVIEW
opcode, sizeInBytes
-
Method Details
-
invokedynamic
InvokeDynamicEntryPREVIEW invokedynamic()Returns anInvokeDynamicEntry
PREVIEW describing the call site.- Returns:
- an
InvokeDynamicEntry
PREVIEW describing the call site
-
name
-
type
-
typeSymbol
Returns the invocation type of the call site, as a symbolic descriptor.- Returns:
- the invocation type of the call site, as a symbolic descriptor
-
bootstrapMethod
Returns the bootstrap method of the call site.- Returns:
- the bootstrap method of the call site
-
bootstrapArgs
Returns the bootstrap arguments of the call site.- Returns:
- the bootstrap arguments of the call site
-
of
Returns an invokedynamic instruction.- Parameters:
invokedynamic
- the constant pool entry describing the call site- Returns:
- an invokedynamic instruction
-
InvokeDynamicInstruction
when preview features are enabled.