Package com.ibm.wala.sourcepos
Class CRTable
- java.lang.Object
-
- com.ibm.wala.sourcepos.CRTable
-
-
Field Summary
Fields Modifier and Type Field Description static 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(DataInputStream in)
Reads the attribute data from the input stream.String
toString()
-
-
-
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
-
-