Interface InvokeDynamicInstruction
- 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 CodeElementPREVIEW when traversing
the elements of a CodeModelPREVIEW.- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<ConstantDesc> Returns the bootstrap arguments of the call site.default DirectMethodHandleDescReturns the bootstrap method of the call site.Returns anInvokeDynamicEntryPREVIEW 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 MethodTypeDescReturns 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 anInvokeDynamicEntryPREVIEW describing the call site.- Returns:
- an
InvokeDynamicEntryPREVIEW 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
-
InvokeDynamicInstructionwhen preview features are enabled.