Package com.ibm.wala.shrike.sourcepos
Class CRTable
- java.lang.Object
-
- com.ibm.wala.shrike.sourcepos.CRTable
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTRIBUTE_NAMEStores 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 RangegetSourceInfo(int pc)Returns the source positions for the given index in the code array of the code attribute.protected voidreadData(java.io.DataInputStream in)Reads the attribute data from the input stream.java.lang.StringtoString()
-
-
-
Field Detail
-
ATTRIBUTE_NAME
public static final java.lang.String ATTRIBUTE_NAME
Stores the attribute name of this attribute- See Also:
- Constant Field Values
-
-
Method Detail
-
readData
protected void readData(java.io.DataInputStream in) throws java.io.IOExceptionReads 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:
toStringin classjava.lang.Object
-
-