Class CRTable


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

      Fields 
      Modifier and Type Field Description
      static java.lang.String ATTRIBUTE_NAME
      Stores the attribute name of this attribute
    • Constructor Summary

      Constructors 
      Constructor Description
      CRTable​(byte[] data)
      Creates a new instance of CRTable.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Range getSourceInfo​(int pc)
      Returns the source positions for the given index in the code array of the code attribute.
      protected void readData​(java.io.DataInputStream in)
      Reads the attribute data from the input stream.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ATTRIBUTE_NAME

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

      • CRTable

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

      • readData

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

        public 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object