Class InvokeDynamicConstant


  • public class InvokeDynamicConstant
    extends Constant
    Constant specifying a bootstrap method..
    Author:
    Franz-Josef Elmer
    • Constructor Summary

      Constructors 
      Constructor Description
      InvokeDynamicConstant​(Constant[] pool, int bootstrapMethodAttrIndex, int nameAndTypeIndex)
      Creates an instance for the specified bootstrap method.
    • Constructor Detail

      • InvokeDynamicConstant

        public InvokeDynamicConstant​(Constant[] pool,
                                     int bootstrapMethodAttrIndex,
                                     int nameAndTypeIndex)
        Creates an instance for the specified bootstrap method.
        Parameters:
        pool - Constant pool. Needed to resolve references.
    • Method Detail

      • getNameAndType

        public java.lang.String getNameAndType()
        Returns name and type.
      • toString

        public java.lang.String toString()
        Returns constant type and descriptor.
        Overrides:
        toString in class java.lang.Object