Class MethodHandleCpInfo

  • All Implemented Interfaces:
    ClassConstants

    public class MethodHandleCpInfo
    extends CpInfo
    Representation of a 'methodhandle' entry in the ConstantPool.
    • Constructor Detail

      • MethodHandleCpInfo

        protected MethodHandleCpInfo()
        Instantiates a new Method handle cp info.
    • Method Detail

      • readInfo

        protected void readInfo​(java.io.DataInput din)
                         throws java.io.IOException
        Description copied from class: CpInfo
        Read the 'info' data following the u1tag byte; over-ride this in sub-classes.
        Specified by:
        readInfo in class CpInfo
        Parameters:
        din - the din
        Throws:
        java.io.IOException - the io exception
      • writeInfo

        protected void writeInfo​(java.io.DataOutput dout)
                          throws java.io.IOException
        Description copied from class: CpInfo
        Write the 'info' data following the u1tag byte; over-ride this in sub-classes.
        Specified by:
        writeInfo in class CpInfo
        Parameters:
        dout - the dout
        Throws:
        java.io.IOException - the io exception
      • getReferenceKind

        protected int getReferenceKind()
        Gets reference kind.
        Returns:
        the reference kind
      • getReferenceIndex

        protected int getReferenceIndex()
        Gets reference index.
        Returns:
        the reference index