Class StringCpInfo

  • All Implemented Interfaces:
    ClassConstants

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

      • StringCpInfo

        protected StringCpInfo()
        Instantiates a new String cp info.
    • Method Detail

      • getStringIndex

        public int getStringIndex()
      • setStringIndex

        public void setStringIndex​(int stringIndex)
      • markUtf8Refs

        protected void markUtf8Refs​(ConstantPool pool)
        Check for Utf8 references to constant pool and mark them.
        Overrides:
        markUtf8Refs in class CpInfo
        Parameters:
        pool - the pool
      • readInfo

        protected void readInfo​(java.io.DataInput din)
                         throws java.io.IOException
        Read the 'info' data following the u1tag byte.
        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
        Write the 'info' data following the u1tag byte.
        Specified by:
        writeInfo in class CpInfo
        Parameters:
        dout - the dout
        Throws:
        java.io.IOException - the io exception