Class CRTable
java.lang.Object
com.ibm.wala.shrike.sourcepos.CRTable
This class represents the CharacterRangeTable attribute.
- Author:
- Siegfried Weber, Juergen Graf <juergen.graf@gmail.com>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSourceInfo(int pc) Returns the source positions for the given index in the code array of the code attribute.protected voidReads the attribute data from the input stream.toString()
-
Field Details
-
ATTRIBUTE_NAME
-
-
Constructor Details
-
CRTable
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
Reads the attribute data from the input stream.- Parameters:
in- the input stream- Throws:
IOException- if the input stream cannot be read.
-
getSourceInfo
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
-