Class InvokeDynamic


  • public class InvokeDynamic
    extends Object
    The index pair carried by a CONSTANT_InvokeDynamic pool entry.
    • Constructor Detail

      • InvokeDynamic

        public InvokeDynamic​(int bootstrapMethodAttrIndex,
                             int nameAndTypeIndex)
        Creates an invokedynamic reference from its raw indices.
        Parameters:
        bootstrapMethodAttrIndex - index into the BootstrapMethods attribute
        nameAndTypeIndex - constant pool index of the call site name and type
    • Method Detail

      • getBootstrapMethodAttrIndex

        public int getBootstrapMethodAttrIndex()
        Returns:
        the bootstrap method attr index
      • getNameAndTypeIndex

        public int getNameAndTypeIndex()
        Returns:
        the name and type index