Class MethodTypeCpInfo

  • All Implemented Interfaces:
    ClassConstants

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

      • MethodTypeCpInfo

        protected MethodTypeCpInfo()
        Instantiates a new Method type 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
      • getU2descriptorIndex

        public int getU2descriptorIndex()
        Gets u 2 descriptor index.
        Returns:
        the u 2 descriptor index
      • markUtf8Refs

        protected void markUtf8Refs​(ConstantPool pool)
        Description copied from class: CpInfo
        Check for Utf8 references to constant pool and mark them; over-ride this in sub-classes.
        Overrides:
        markUtf8Refs in class CpInfo
        Parameters:
        pool - the pool
      • setU2descriptorIndex

        public void setU2descriptorIndex​(int u2descriptorIndex)
        Sets u 2 descriptor index.
        Parameters:
        u2descriptorIndex - the u 2 descriptor index