Interface InvokeDynamicInstruction
- All Superinterfaces:
ClassFileElement,CodeElement,Instruction
Models a dynamically-computed call site invocation instruction in the
code array of a Code attribute. The corresponding opcode is
invokedynamic. Delivered as a CodeElement when traversing the elements of a CodeModel.
A dynamically-computed call site invocation instruction is composite:
InvokeDynamicInstruction(InvokeDynamicEntry invokedynamic)
- See Java Virtual Machine Specification:
-
6.5.invokedynamic invokedynamic
- Since:
- 24
- See Also:
-
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 anInvokeDynamicEntrydescribing the call site.default Utf8Entryname()Returns the invocation name of the call site.static InvokeDynamicInstructionof(InvokeDynamicEntry invokedynamic) Returns an invokedynamic instruction.default Utf8Entrytype()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.Instruction
opcode, sizeInBytes
-
Method Details
-
invokedynamic
InvokeDynamicEntry invokedynamic()Returns anInvokeDynamicEntrydescribing the call site.- Returns:
- an
InvokeDynamicEntrydescribing the call site
-
name
Returns the invocation name of the call site.- Returns:
- the invocation name of the call site
-
type
Returns the invocation type of the call site.- API Note:
- A symbolic descriptor for the invocation typeis available through
typeSymbol(). - Returns:
- the invocation type of the call site
-
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
-