Class RefCpInfo

    • Constructor Detail

      • RefCpInfo

        protected RefCpInfo​(int tag)
        Instantiates a new Ref cp info.
        Parameters:
        tag - the tag
    • Method Detail

      • getClassIndex

        protected int getClassIndex()
        Return the class index.
        Returns:
        the class index
      • getNameAndTypeIndex

        protected int getNameAndTypeIndex()
        Return the name-and-type index.
        Returns:
        the name and type index
      • setNameAndTypeIndex

        protected void setNameAndTypeIndex​(int index)
        Set the name-and-type index.
        Parameters:
        index - the index
      • markNTRefs

        protected void markNTRefs​(ConstantPool pool)
        Check for N+T references to constant pool and mark them.
        Overrides:
        markNTRefs 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
      • dump

        public void dump​(java.io.PrintWriter pw,
                         ClassFile cf,
                         int index)
        Dump the content of the class file to the specified file (used for debugging).
        Overrides:
        dump in class CpInfo
        Parameters:
        pw - the pw
        cf - the cf
        index - the index