Interface InvokeDynamicInstruction
- All Superinterfaces:
ClassFileElement
,CodeElement
,Instruction
Models an
invokedynamic
instruction in the code
array of a
Code
attribute. Delivered as a CodeElement
when traversing
the elements of a CodeModel
.- Since:
- 24
-
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
describing the call site.default Utf8Entry
name()
Returns the invocation name of the call site.static InvokeDynamicInstruction
of
(InvokeDynamicEntry invokedynamic) Returns an invokedynamic instruction.default Utf8Entry
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.Instruction
opcode, sizeInBytes
-
Method Details
-
invokedynamic
InvokeDynamicEntry invokedynamic()Returns anInvokeDynamicEntry
describing the call site.- Returns:
- an
InvokeDynamicEntry
describing 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.- 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
-