Class NameAndTypeCpInfo

  • All Implemented Interfaces:
    ClassConstants, java.lang.Cloneable

    public class NameAndTypeCpInfo
    extends CpInfo
    implements java.lang.Cloneable
    Representation of a 'nameandtype' entry in the ConstantPool.
    • Constructor Detail

      • NameAndTypeCpInfo

        protected NameAndTypeCpInfo()
        Instantiates a new Name and type cp info.
    • Method Detail

      • clone

        public java.lang.Object clone()
        Clone the entry.
        Overrides:
        clone in class java.lang.Object
      • getNameIndex

        protected int getNameIndex()
        Return the name index.
        Returns:
        the name index
      • setNameIndex

        protected void setNameIndex​(int index)
        Set the name index.
        Parameters:
        index - the index
      • getDescriptorIndex

        protected int getDescriptorIndex()
        Return the descriptor index.
        Returns:
        the descriptor index
      • setDescriptorIndex

        protected void setDescriptorIndex​(int index)
        Set the descriptor index.
        Parameters:
        index - the index
      • 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