Module org.kink_lang.kink
Record Class Insn.InvokeDynamic
java.lang.Object
java.lang.Record
org.kink_lang.kink.internal.compile.javaclassir.Insn.InvokeDynamic
- Record Components:
descriptorString
- the descriptor of the insn type.bootstrapHandle
- the handle of the bootstrap method.bootstrapArgs
- the static args for the bootstrap method.
- All Implemented Interfaces:
Insn
- Enclosing interface:
- Insn
public static record Insn.InvokeDynamic(String descriptorString, org.objectweb.asm.Handle bootstrapHandle, List<Object> bootstrapArgs)
extends Record
implements Insn
Invoke-dynamic insn.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.kink_lang.kink.internal.compile.javaclassir.Insn
Insn.AddInt, Insn.ArrayStore, Insn.Case, Insn.CheckCast, Insn.Default, Insn.Dup, Insn.GetField, Insn.GetStatic, Insn.GoTo, Insn.IfEq, Insn.IfEqInt, Insn.IfGeInt, Insn.IfGtInt, Insn.IfLtInt, Insn.IfNonNull, Insn.IfNonZero, Insn.InstanceOf, Insn.InvokeConstructor, Insn.InvokeDynamic, Insn.InvokeStatic, Insn.InvokeVirtual, Insn.LoadArg, Insn.LoadLocal, Insn.LoadThis, Insn.Mark, Insn.NewArray, Insn.NewInstance, Insn.PushInt, Insn.PushString, Insn.ReturnValue, Insn.StoreArg, Insn.StoreNewLocal, Insn.SubInt, Insn.Switch, Insn.Throw
-
Constructor Summary
ConstructorDescriptionInvokeDynamic
(MethodType descriptor, org.objectweb.asm.Handle bootstrapHandle, List<Object> bootstrapArgs) Constructs an insn.InvokeDynamic
(String descriptorString, org.objectweb.asm.Handle bootstrapHandle, List<Object> bootstrapArgs) Constructs an insn. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebootstrapArgs
record component.org.objectweb.asm.Handle
Returns the value of thebootstrapHandle
record component.Returns the value of thedescriptorString
record component.final boolean
Indicates whether some other object is "equal to" this one.void
Generates a fragment of bytecode invoking GeneratorAdapter methods.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
InvokeDynamic
public InvokeDynamic(String descriptorString, org.objectweb.asm.Handle bootstrapHandle, List<Object> bootstrapArgs) Constructs an insn.- Parameters:
descriptorString
- the descriptor of the insn type.bootstrapHandle
- the handle of the bootstrap method.bootstrapArgs
- the static args for the bootstrap method.
-
InvokeDynamic
public InvokeDynamic(MethodType descriptor, org.objectweb.asm.Handle bootstrapHandle, List<Object> bootstrapArgs) Constructs an insn.- Parameters:
descriptor
- the descriptor of the insn type.bootstrapHandle
- the handle of the bootstrap method.bootstrapArgs
- the static args for the bootstrap method.
-
-
Method Details
-
generateBytecodeSnippet
Description copied from interface:Insn
Generates a fragment of bytecode invoking GeneratorAdapter methods.- Specified by:
generateBytecodeSnippet
in interfaceInsn
- Parameters:
state
- the state of bytecode generation.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
descriptorString
Returns the value of thedescriptorString
record component.- Returns:
- the value of the
descriptorString
record component
-
bootstrapHandle
public org.objectweb.asm.Handle bootstrapHandle()Returns the value of thebootstrapHandle
record component.- Returns:
- the value of the
bootstrapHandle
record component
-
bootstrapArgs
Returns the value of thebootstrapArgs
record component.- Returns:
- the value of the
bootstrapArgs
record component
-