Class CRTable


  • public final class CRTable
    extends Object
    This class represents the CharacterRangeTable attribute.
    See Also:
    CRTData, CRTFlags
    • Field Detail

      • ATTRIBUTE_NAME

        public static final String ATTRIBUTE_NAME
        Stores the attribute name of this attribute
        See Also:
        Constant Field Values
    • Constructor Detail

      • CRTable

        public CRTable​(byte[] data)
                throws IOException
        Creates a new instance of CRTable.
        Parameters:
        data - the byte array containing the attribute
        Throws:
        IOException - An IOException is thrown if the attribute can't be read.
    • Method Detail

      • readData

        protected final void readData​(DataInputStream in)
                               throws IOException
        Reads the attribute data from the input stream.
        Parameters:
        in - the input stream
        Throws:
        IOException - if the input stream cannot be read.
      • getSourceInfo

        public final Range getSourceInfo​(int pc)
        Returns the source positions for the given index in the code array of the code attribute.
        Parameters:
        pc - the index in the code array of the code attribute
        Returns:
        the most precise source position range