Package com.ibm.wala.shrike.sourcepos
Class CRTData
- java.lang.Object
-
- com.ibm.wala.shrike.sourcepos.CRTData
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CRTFlagsgetFlags()RangegetSourceInfo()Returns the source positions.booleanisInRange(int pc)Tests whether the given index lies within the range of this data.booleanisMorePrecise(CRTData d)Tests whether this data is equal to or more precise than the given data.booleanmatches(CRTData d)Tests whether the given data is consistently with this data.java.lang.StringtoString()
-
-
-
Method Detail
-
getFlags
public CRTFlags getFlags()
-
isInRange
public boolean isInRange(int pc)
Tests whether the given index lies within the range of this data.- Parameters:
pc- the index to test- Returns:
- whether the given index lies within the range of this data or not.
-
matches
public boolean matches(CRTData d)
Tests whether the given data is consistently with this data. To be consistently with another data this data has to be equal or more precise. Otherwise the datas are contradictory.- Parameters:
d- the data to test with- Returns:
- whether the given data is consistently.
-
isMorePrecise
public boolean isMorePrecise(CRTData d)
Tests whether this data is equal to or more precise than the given data. This data is equal or more precise if the program counter range and the source range lie within the range of the given data. If this data or the parameter have no source positions, only program counter range decides.- Parameters:
d- the data to test with- Returns:
- whether this data is equal to or more precise than the given one.
-
getSourceInfo
public Range getSourceInfo()
Returns the source positions.- Returns:
- The returned array consists of four positions: the start line number, the start column number, the end line number, the end column number
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-