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 SummaryModifier 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.Instructionopcode, sizeInBytes
- 
Method Details- 
invokedynamicInvokeDynamicEntry invokedynamic()Returns anInvokeDynamicEntrydescribing the call site.- Returns:
- an InvokeDynamicEntrydescribing the call site
 
- 
nameReturns the invocation name of the call site.- Returns:
- the invocation name of the call site
 
- 
typeReturns 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
 
- 
typeSymbolReturns the invocation type of the call site, as a symbolic descriptor.- Returns:
- the invocation type of the call site, as a symbolic descriptor
 
- 
bootstrapMethodReturns the bootstrap method of the call site.- Returns:
- the bootstrap method of the call site
 
- 
bootstrapArgsReturns the bootstrap arguments of the call site.- Returns:
- the bootstrap arguments of the call site
 
- 
ofReturns an invokedynamic instruction.- Parameters:
- invokedynamic- the constant pool entry describing the call site
- Returns:
- an invokedynamic instruction
 
 
-