Class InvokeDynamicInsnNode


  • public class InvokeDynamicInsnNode
    extends AbstractInsnNode
    A node that represents an invokedynamic instruction.
    • Field Detail

      • name

        public java.lang.String name
        The method's name.
      • desc

        public java.lang.String desc
        The method's descriptor (see Type).
      • bsm

        public Handle bsm
        The bootstrap method.
      • bsmArgs

        public java.lang.Object[] bsmArgs
        The bootstrap method constant arguments.
    • Constructor Detail

      • InvokeDynamicInsnNode

        public InvokeDynamicInsnNode​(java.lang.String name,
                                     java.lang.String descriptor,
                                     Handle bootstrapMethodHandle,
                                     java.lang.Object... bootstrapMethodArguments)
        Constructs a new InvokeDynamicInsnNode.
        Parameters:
        name - the method's name.
        descriptor - the method's descriptor (see Type).
        bootstrapMethodHandle - the bootstrap method.
        bootstrapMethodArguments - the bootstrap method constant arguments. Each argument must be an Integer, Float, Long, Double, String, Type or Handle value. This method is allowed to modify the content of the array so a caller should expect that this array may change.
    • Method Detail

      • getType

        public int getType()
        Description copied from class: AbstractInsnNode
        Returns the type of this instruction.
        Specified by:
        getType in class AbstractInsnNode
        Returns:
        the type of this instruction, i.e. one the constants defined in this class.
      • accept

        public void accept​(MethodVisitor methodVisitor)
        Description copied from class: AbstractInsnNode
        Makes the given method visitor visit this instruction.
        Specified by:
        accept in class AbstractInsnNode
        Parameters:
        methodVisitor - a method visitor.