Class ConstantMethodHandleInfo

  • All Implemented Interfaces:
    ConstantTypes

    public class ConstantMethodHandleInfo
    extends ConstantPoolInfo
    Class representing a CONSTANT_MethodHandle structure.
    Version:
    1.0
    • Field Detail

      • referenceKind

        private int referenceKind
      • referenceIndex

        private int referenceIndex
    • Constructor Detail

      • ConstantMethodHandleInfo

        public ConstantMethodHandleInfo​(int referenceKind,
                                        int referenceIndex)
        Constructor.
        Parameters:
        referenceKind - The reference kind.
        referenceIndex - The reference index.
    • Method Detail

      • getReferenceKind

        public int getReferenceKind()
      • getReferenceIndex

        public int getReferenceIndex()
      • toString

        public java.lang.String toString()
        Returns a string representation of this object. Useful for debugging.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of this object.