Class CRTable

java.lang.Object
com.ibm.wala.shrike.sourcepos.CRTable

public final class CRTable extends Object
This class represents the CharacterRangeTable attribute.
Author:
Siegfried Weber, Juergen Graf <juergen.graf@gmail.com>
See Also:
  • Field Details

    • ATTRIBUTE_NAME

      public static final String ATTRIBUTE_NAME
      Stores the attribute name of this attribute
      See Also:
  • Constructor Details

    • 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 Details

    • readData

      protected 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 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 String toString()
      Overrides:
      toString in class Object