Module org.glavo.classfile
Package org.glavo.classfile.instruction
Interface InvokeDynamicInstruction
- All Superinterfaces:
ClassfileElement,CodeElement,Instruction
- All Known Implementing Classes:
AbstractInstruction.BoundInvokeDynamicInstruction,AbstractInstruction.UnboundInvokeDynamicInstruction
public sealed interface InvokeDynamicInstruction
extends Instruction
permits AbstractInstruction.BoundInvokeDynamicInstruction, AbstractInstruction.UnboundInvokeDynamicInstruction
Models an
invokedynamic instruction in the code array of a
Code attribute. Delivered as a CodeElement when traversing
the elements of a CodeModel.-
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 inherited from interface org.glavo.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.- 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
-